SourceForge has been redesigned. Learn more.
Close

#3 Error in qpng

open
nobody
None
5
2008-02-14
2008-02-14
Anonymous
No

The following example claims feasibility and optimal solution found, on an infeasible problem

full(A)

ans =

1.0000 0 0 0 0
0 1.0000 0 0 0
0 0 1.0000 0 0
0 0 0 1.0000 0
0 0 0 0 1.0000
-1.0000 0 0 0 0
0 -1.0000 0 0 0
0 0 -1.0000 0 0
0 0 0 -1.0000 0
0 0 0 0 -1.0000
-4.5000 -3.5000 -2.5000 -1.5000 -0.5000
4.5000 3.5000 2.5000 1.5000 0.5000
-1.0000 0 0 0 0
0 -1.0000 0 0 0
0 0 -1.0000 0 0
0 0 0 -1.0000 0
0 0 0 0 -1.0000

full(b)

ans =

1
1
1
1
1
1
1
1
1
1
12
-10
0
0
0
0
0

[x,obj,lambda,info] = qpng(eye(5),zeros(5,1),full(A),full(b));info.status
ans =

1

A*x-b

ans =

-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-12
10
0
0
0
0
0

Discussion


Log in to post a comment.