Skip to content

Instantly share code, notes, and snippets.

@this-josh
Created June 16, 2022 15:32
Show Gist options
  • Save this-josh/e9220cd6a1a6573308680281c4098844 to your computer and use it in GitHub Desktop.
Save this-josh/e9220cd6a1a6573308680281c4098844 to your computer and use it in GitHub Desktop.
Gurobi licence only once
using Gurobi, JuMP
const GRB_ENV[] = Gurobi.Env()
model = Model()
set_optimizer(model, () -> Gurobi.Optimizer(GRB_ENV[]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment