is the code correct to set parameters in Gurobi

Hi @Summer,

You can set parameters on the model (as suggested in your thread on the Gurobi forum) by passing them to the GurobiSolver object instead of the env as follows:

env = Gurobi.Env()
model = Model(solver = GurobiSolver(env, TimeLimit=10))
2 Likes