Documentation


R Parameter Examples

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

  params <- list(TimeLimit=100)
The case of the parameter name is ignored, as are underscores. Thus, you could also do:
  params <- list(timeLimit = 100)
...or...
  params <- list(TIME_LIMIT = 100)

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