Skip to content

Gurobi's "Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored" is printed upon JuMP.@constraint() rather than during JuMP.optimize!() #598

@WalterMadelim

Description

@WalterMadelim
  1. If you want to eliminate printing, you have to use JuMP.set_silent(model) immediately after creating that model.
  2. If you are setting JuMP.set_silent(model) just before JuMP.optimize!(model), you may still see the warning information being printed.

For a programmer, the 2. choice is helpful in that you can detect problems. If you are confident there's no problem, then you can switch to 1. style, in this way you won't be bothered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions