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

Setting Env parameters #370

Closed
ValentinKaisermayer opened this issue Nov 13, 2020 · 2 comments
Closed

Setting Env parameters #370

ValentinKaisermayer opened this issue Nov 13, 2020 · 2 comments

Comments

@ValentinKaisermayer
Copy link

Setting Env parameters is currently only possible via the gurobi.lic.
However, the Gurobi C API would support it.

@odow
Copy link
Member

odow commented Nov 15, 2020

This is already supported.

julia> using Gurobi

julia> env = Gurobi.Env()
Academic license - for non-commercial use only - expires 2020-12-05
Gurobi.Env(Ptr{Nothing} @0x00007fc0f7c17c00, false, 0)

julia> GRBsetintparam(env, "OutputFlag", 0)
0

julia> model = Gurobi.Optimizer(env)
    sense  : minimize
    number of variables             = 0
    number of linear constraints    = 0
    number of quadratic constraints = 0
    number of sos constraints       = 0
    number of non-zero coeffs       = 0
    number of non-zero qp objective terms  = 0
    number of non-zero qp constraint terms = 0


julia> Gurobi.MOI.get(model, Gurobi.MOI.RawParameter("OutputFlag"))
0

@odow
Copy link
Member

odow commented Nov 17, 2020

Closing since there doesn't appear to be anything to do here.

@odow odow closed this as completed Nov 17, 2020
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