-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiffOpt accepts SingleVariable in ScalarSet but does not retrieve it #67
Comments
Handling single variables is tricky, one part of the issue is that we don't check lower bounds here: ERROR: MathOptInterface.LowerBoundAlreadySet{MathOptInterface.GreaterThan{Float64}, MathOptInterface.GreaterThan{Float64}}: Cannot add `SingleVariable`-in`MathOptInterface.GreaterThan{Float64}` constraint for variable MathOptInterface.VariableIndex(3) as a `SingleVariable`-in`MathOptInterface.GreaterThan{Float64}` constraint was already set for this variable and both constraints set a lower bound. is thrown in certain cases, but not all. |
Currently we offer blanket support for some sets and functions which should probably not be there:
|
nope. |
@be-apt I think this one can be closed? |
yep, was fixed in #77. Diffopt retrieves SingleVariable in <, > constraints |
This is due to
get_problem_data(model::MOI.AbstractOptimizer)
fetching only ScalarAffineFunction in set, so SingleVariable is passed but not countedThe text was updated successfully, but these errors were encountered: