Two options:
- Use
model = direct_model(Gurobi.Optimizer()). This gets you closer to the Gurobi model without some of the overhead of JuMP. - Your example exposed a bug in Gurobi.jl To work-around it, set
VarHintValfor every variable (not justx1). I’ll open an issue in Gurobi.jl to see if we can fix this.