Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::GurobiParameters Struct Reference

#include <parameters.h>

Public Member Functions

GurobiParametersProto Proto () const
 
bool empty () const
 

Static Public Member Functions

static GurobiParameters FromProto (const GurobiParametersProto &proto)
 

Public Attributes

gtl::linked_hash_map< std::string, std::string > param_values
 Parameter name-value pairs to set in insertion order.
 

Detailed Description

Gurobi specific parameters for solving. See https://www.gurobi.com/documentation/9.1/refman/parameters.html for a list of possible parameters.

Example use: GurobiParameters gurobi; gurobi.param_values["BarIterLimit"] = "10";

With Gurobi, the order that parameters are applied can have an impact in rare situations. Parameters are applied in the following order:

  • LogToConsole is set from SolveParameters.enable_output.
  • Any common parameters not overwritten by GurobiParameters.
  • param_values in iteration order (insertion order). We set LogToConsole first because setting other parameters can generate output.

Definition at line 214 of file parameters.h.

Member Function Documentation

◆ empty()

bool operations_research::math_opt::GurobiParameters::empty ( ) const
inline

Definition at line 221 of file parameters.h.

◆ FromProto()

GurobiParameters operations_research::math_opt::GurobiParameters::FromProto ( const GurobiParametersProto & proto)
static

Definition at line 188 of file parameters.cc.

◆ Proto()

GurobiParametersProto operations_research::math_opt::GurobiParameters::Proto ( ) const

Definition at line 178 of file parameters.cc.

Member Data Documentation

◆ param_values

gtl::linked_hash_map<std::string, std::string> operations_research::math_opt::GurobiParameters::param_values

Parameter name-value pairs to set in insertion order.

Definition at line 216 of file parameters.h.


The documentation for this struct was generated from the following files: