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

Provide a way to set configuration parameters in Gurobi.Env #588

Open
simonbowly opened this issue Nov 13, 2024 · 1 comment · May be fixed by #596
Open

Provide a way to set configuration parameters in Gurobi.Env #588

simonbowly opened this issue Nov 13, 2024 · 1 comment · May be fixed by #596

Comments

@simonbowly
Copy link
Collaborator

From jump-dev/Gurobi_jll.jl#30.

For WLS licenses, compute servers, cluster managers it's necessary to set parameters on an empty environment before starting it (if, that is, you don't want to keep those parameters in the license file).

https://docs.gurobi.com/projects/optimizer/en/11.0/concepts/environments/configuration.html#empty-environment-example

It would be helpful if there were a way to provide these parameters without calling C API functions directly. In gurobipy we use the following pattern to pass a mapping of parameters to be set before the environment is started:

import gurobipy as gp

env = gp.Env(params={
    "CSManager": "<url>",
    "CSAPIAccessID": "<api key>",
    "CSAPISecret": "<api secret>",
})

@odow would it be reasonable to provide a Gurobi.Env constructor that takes a Dict? That would generalise the approach currently in Gurobi.jl of having separate constructors for memory limits and compute servers.

@odow odow transferred this issue from jump-dev/Gurobi_jll.jl Nov 14, 2024
@odow
Copy link
Member

odow commented Nov 14, 2024

I've moved this to Gurobi.jl.

No objection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants