You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any justification for labeling a very first ScalarAffineFunction constraint in an optimizer to be 2, rather than 1?
import MathOptInterface as MOI
import Gurobi
o = Gurobi.Optimizer()
x = MOI.add_variable(o)
f = MOI.ScalarAffineFunction([MOI.ScalarAffineTerm(1.,x)], 0.)
s = MOI.GreaterThan(1.)
# Notice the output: Can explain why this number starts from 2 here?println(MOI.add_constraint(o,f,s)) # MathOptInterface.ConstraintIndex{...}(2)# ... = MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.GreaterThan{Float64}
The text was updated successfully, but these errors were encountered:
Are there any justification for labeling a very first ScalarAffineFunction constraint in an optimizer to be 2, rather than 1?
The text was updated successfully, but these errors were encountered: