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;
  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.