Skip to main content

How to introspect solver configuation parameters?

Answered

Comments

1 comment

  • Martin Bromberger
    • Gurobi Staff

    Hi Ben,

    OR-Tools indeed uses a different parameter configuration than Gurobi. OR-Tools in Python at least changes OptimalityTol, IntFeasTol, and FeasTol to 1e-7, which can increase the computation time. You should also be aware that OR-Tools may process some constraints (e.g., nonlinear constraints) differently and potentially less efficiently than Gurobi.

    You can set Gurobi's parameters in OR-Tools via the following command:

    str = "# Parameter settings \n ResultFile model.prm"
    self.solver.SetSolverSpecificParametersAsString(str)

    This example should change the parameters in such a way that Gurobi also writes a file model.prm to the execution directory containing all Gurobi non-default parameter settings.

     

    0

Please sign in to leave a comment.