First, set the following:


Languages:
C
C++
Java
.NET
Python
MATLAB
R

Then, choose below:


Quick Start Guides

Example Tour

Reference Manual

AMPL-Gurobi Guide

Remote Services

Cloud Guide

MATLAB Parameter Examples


MATLAB Parameter Examples

In the MATLAB interface, parameters are passed to Gurobi through a struct. To modify a parameter, you create a field in the struct with the appropriate name, and set it to the desired value. For example, to set the TimeLimit parameter to 100 you'd do:

  params.timelimit = 100;
The case of the parameter name is ignored, as are underscores. Thus, you could also do:
  params.timeLimit = 100;
...or...
  params.TIME_LIMIT = 100;

All desired parameter changes should be stored in a single struct, which is passed as the second parameter to the gurobi function.