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

Tune model #421

Closed
anavarro01 opened this issue Sep 6, 2021 · 2 comments
Closed

Tune model #421

anavarro01 opened this issue Sep 6, 2021 · 2 comments

Comments

@anavarro01
Copy link

Hi, i am trying to tune my Gurobi model, calling de tune function (https://www.gurobi.com/documentation/9.1/refman/py_model_tune.html). I followed the instructions from #138 , but it seems to not work at the 9.1 version. There is any waiy to use this utility?

@odow
Copy link
Member

odow commented Sep 6, 2021

Use the C API:

function GRBtunemodel(model)
ccall((:GRBtunemodel, libgurobi), Cint, (Ptr{GRBmodel},), model)
end

using JuMP, Gurobi
jump_model = direct_model(Gurobi.Optimizer())
model = backend(jump_model)
GRBtunemodel(model)

You should consult the Gurobi documentation for more details.

@odow
Copy link
Member

odow commented Sep 8, 2021

Closing because this isn't an issue in Gurobi.jl.

Issue #412 is tracking the addition of documentation for accessing the C API.

@odow odow closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants