-
Notifications
You must be signed in to change notification settings - Fork 89
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
Incorrect solution for LP #42
Comments
Does your input data match your theoretical computation? Your first constraint is When looking at the 13th test problem of MOI there your dual version is given to check feasibility. Thus what is the purpose of your derived primal LP? Maybe you not dualize it. Just reformulate the given problem for SeDuMi by introducing a slack variable for the inequality constraint:
For Octave 4.4.1 and SeDuMi, I get a result much closer to your desired values (note that
|
Indeed, sorry for the mistake, I have corrected it in the first post.
I have decided to always use the dual form:
Indeed, thanks for the tip.
he would still get an incorrect dual. Isn't it a bug in SeDuMi ? |
Not really a bug. Your matrix Lines 10 to 11 in b4a462b
and Lines 165 to 167 in b4a462b
Just try to input the transposed matrix |
Indeed, that resolves the issue, thanks @siko1056 ! |
Consider the problem
with dual
The only feasible solution of the primal is
(0, 0)
and for the dual, the feasible solution is the ray(1, 1)
starting at(1/5, 1/5)
.SeDuMi returns the correct
x
(0, 0)
but an incorrectỳ
(-1.2, 0.6)
.The problem is the 13th test problem of MOI and it is used to verify the correctness of the Julia SeDuMi wrapper.
Here is what I get when using
sedumi
directly:Any idea what's the issue ?
The text was updated successfully, but these errors were encountered: