Skip to main content

Suppress `Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored`

Answered

Comments

2 comments

  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    You can use a gurobi.env file to set OutputFlag or LogToConsole to 0 as described as the second option in How do I suppress all console output from Gurobi?

    Managing the Gurobi environment and setting parameters before it starts, can now be done in pyomo as follows:

    import pyomo.environ as pye
    options = {"OutputFlag": "0"}
    pye.SolverFactory('gurobi_persistent', manage_env=True, options=options).set_instance(m)
    0
  • Muhammad Dzulqarnain Firdausi
    First Comment
    Gurobi-versary
    First Question

    Thank you

    0

Please sign in to leave a comment.