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

[Utilities] get_fallback assumes Float64 #2412

Closed
odow opened this issue Jan 24, 2024 · 0 comments · Fixed by #2414
Closed

[Utilities] get_fallback assumes Float64 #2412

odow opened this issue Jan 24, 2024 · 0 comments · Fixed by #2414

Comments

@odow
Copy link
Member

odow commented Jan 24, 2024

See various hard-coded 0.0:

function variable_dual(
model::MOI.ModelLike,
attr::MOI.ConstraintDual,
ci::MOI.ConstraintIndex,
vi::MOI.VariableIndex,
F::Type{<:MOI.AbstractFunction},
S::Type{<:MOI.AbstractSet},
)
dual = 0.0
for constraint_index in MOI.get(model, MOI.ListOfConstraintIndices{F,S}())
dual += variable_dual(model, attr, vi, constraint_index)
end
return dual
end

Found by #2411

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