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

ConstraintPrimal is supposed to return value of function at result point #81

Closed
chriscoey opened this issue Nov 10, 2018 · 1 comment · Fixed by #130
Closed

ConstraintPrimal is supposed to return value of function at result point #81

chriscoey opened this issue Nov 10, 2018 · 1 comment · Fixed by #130

Comments

@chriscoey
Copy link

it should not be returning a constant given by the set.
see http://www.juliaopt.org/MathOptInterface.jl/dev/apireference/#MathOptInterface.ConstraintPrimal

e.g. see https://github.com/JuliaOpt/ECOS.jl/blob/77eaa92ea05c513099db2b0fff9f23513ae78b79/src/MOIWrapper.jl#L335
the set is Zeros, and the constraint primal returned is just zero. but the value of the constraint function is likely numerically non-zero.

@blegat
Copy link
Member

blegat commented Nov 11, 2018

This was not part of the API for equality constraints so I used the set constant. Now that there are result fallback in MOIU we can use that

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.

2 participants