Skip to content
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

MOI.is_valid is wrong for parameter constraints #414

Closed
odow opened this issue Jun 6, 2024 · 0 comments · Fixed by #415
Closed

MOI.is_valid is wrong for parameter constraints #414

odow opened this issue Jun 6, 2024 · 0 comments · Fixed by #415

Comments

@odow
Copy link
Member

odow commented Jun 6, 2024

Found by @metab0t

julia> import Ipopt

julia> const MOI = Ipopt.MOI
MathOptInterface

julia> model = Ipopt.Optimizer();

julia> _, ci = MOI.add_constrained_variable(model, MOI.Parameter(1.0))
(MOI.VariableIndex(67553994410557440), MathOptInterface.ConstraintIndex{MathOptInterface.VariableIndex, MathOptInterface.Parameter{Float64}}(67553994410557440))

julia> MOI.is_valid(model, ci)
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant