Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update headers for Gurobi v11 release #528

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion scripts/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"

[compat]
Clang = "0.12"
Clang = "0.12"
6 changes: 4 additions & 2 deletions scripts/clang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
# This script can be used to build the C interface to Gurobi. However, it
# requires you to manually set the path to the appropriate gurobi_c.h.

# Note that clang 0.12 requires julia 1.5

import Clang

const LIBGRB_HEADERS = [
"/Library/gurobi910/mac64/include/gurobi_c.h",
"/Library/gurobi1100/macos_universal2/include/gurobi_c.h",
]

const GRB_VERSION = "91"
const GRB_VERSION = "110"

const GEN_DIR = joinpath(dirname(@__DIR__), "src", "gen$(GRB_VERSION)")
if !isdir(GEN_DIR)
Expand Down
6 changes: 5 additions & 1 deletion src/Gurobi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,14 @@ elseif _is_patch(_GUROBI_VERSION, v"9.5")
elseif _is_patch(_GUROBI_VERSION, v"10.0")
include("gen100/libgrb_common.jl")
include("gen100/libgrb_api.jl")
elseif _is_patch(_GUROBI_VERSION, v"11.0")
include("gen110/libgrb_common.jl")
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
Loading