Parameter tuning tool

When confronted with the task of choosing parameter values that might lead to better performance on a model, the long list of Gurobi parameters may seem intimidating. To simplify the process, we include a simple automated parameter tuning tool. From the interactive shell, the command is tune():

gurobi> m = read('/opt/gurobi912/linux64/examples/data/misc07')
gurobi> m.tune()

The tool tries a number of different parameter settings, and eventually outputs the best ones that it finds. For example:

Tested 29 parameter sets in 99.33s

Baseline parameter set: mean runtime 1.48s

Improved parameter set 1 (mean runtime 1.13s):

        FlowCoverCuts 1
        Aggregate 0

Improved parameter set 2 (mean runtime 1.22s):

        MIPFocus 1
In this case, it found that setting the MIPFocus parameter to 1 for model misc07 reduced the runtime from 1.48 to 1.22.

Note that tuning is meant to give general suggestions for parameters that might help performance. You should make sure that the results it gives on one model are helpful on the full range of models you plan to solve. You may sometimes find that performance problems can't be fixed with parameter changes alone, particularly if your model has severe numerical issues.

Tuning is also available as a standalone program. From a command prompt, you can type:

> grbtune /opt/gurobi912/linux64/examples/data/p0033

Please consult the Automated Tuning Tool section of the Gurobi Reference Manual for more information.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.