I am currently using JuMP with the Gurobi Solver to optimise a tournament schedule. I use a local search heuristic to try and solve each round in a given time limit after having found a first feasible solution. The problem I now face is, that it takes quite a while to find a first initial solution. Therefore my time limit is quite high. I would like to lower it before reoptimizing each round, but I could not find any examples on how to modify this parameter from the Gurobi Solver in Julia. (E.g in Java I could do the following: m.set(“TimeLimit”, “100.0”); )
Below is a very simple example, where I would like to change the time limit before the second call to optimize!().
using JuMP using Gurobi m = Model(with_optimizer(Gurobi.Optimizer, TimeLimit=720)) @variable(m, x[1:2] >= 0, Int) @constraint(m, 4*x <= 400) @constraint(m, x <= 120) @constraint(m, 8*x + 4*x <= 1000) @objective(m, Max, sum(24*x + 20*x)) optimize!(m) @constraint(m, x <= 100) @objective(m, Max, sum(24*x + 20*x)) #set new TimeLimit? optimize!(m)