Skip to content

Commit

Permalink
Support for Gurobi v11 (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly authored Nov 2, 2023
1 parent 0fee7d4 commit db91456
Show file tree
Hide file tree
Showing 4 changed files with 2,187 additions and 3 deletions.
1 change: 1 addition & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function write_depsfile(path)
end

const ALIASES = [
"gurobi110",
"gurobi100",
"gurobi95",
"gurobi91",
Expand Down
4 changes: 2 additions & 2 deletions scripts/gen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

using Clang.Generators

const gurobi_c = "/Library/gurobi1003/macos_universal2/include/gurobi_c.h"
const output_folder = "gen100"
const gurobi_c = "/Library/gurobi1100/macos_universal2/include/gurobi_c.h"
const output_folder = "gen110"

options = load_options(joinpath(@__DIR__, "generate.toml"))
options["general"]["output_file_path"] =
Expand Down
5 changes: 4 additions & 1 deletion src/Gurobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ elseif _is_patch(_GUROBI_VERSION, v"9.5")
include("gen95/libgrb_api.jl")
elseif _is_patch(_GUROBI_VERSION, v"10.0")
include("gen100/libgrb_api.jl")
elseif _is_patch(_GUROBI_VERSION, v"11.0")
include("gen110/libgrb_api.jl")
else
error("""
You have installed version $_GUROBI_VERSION of Gurobi, which is not
supported by Gurobi.jl. We require Gurobi version 9.0 or 9.1 or 9.5 or 10.0.
supported by Gurobi.jl. We require Gurobi version 9.0 or 9.1 or 9.5
or 10.0 or 11.0.
After installing a supported version of Gurobi, run:
Expand Down
Loading

0 comments on commit db91456

Please sign in to comment.