# HG changeset patch # User Rik # Date 1271991675 25200 # Node ID 83de7b060e91f61801fe93b86623ff7d283d14f0 # Parent e9d1a974a517f2bb7ac02764d7f6174c94e210b6 Return correct value (101) from sqp on succes. Fixes bug #29577. diff -r e9d1a974a517 -r 83de7b060e91 scripts/ChangeLog --- a/scripts/ChangeLog Thu Apr 22 14:38:58 2010 -0700 +++ b/scripts/ChangeLog Thu Apr 22 20:01:15 2010 -0700 @@ -1,3 +1,7 @@ +2010-04-22 Rik + + * optimization/sqp.m: Return correct value (101) on succes. Fixes bug #29577 + 2010-04-22 Rik * optimization/glpk.m: Eliminate repmat (Inf, x , y) and just use Inf (x,y) diff -r e9d1a974a517 -r 83de7b060e91 scripts/optimization/sqp.m --- a/scripts/optimization/sqp.m Thu Apr 22 14:38:58 2010 -0700 +++ b/scripts/optimization/sqp.m Thu Apr 22 20:01:15 2010 -0700 @@ -397,6 +397,7 @@ t4 = norm (lambda .* con); if (t2 && t3 && max ([t0; t1; t4]) < tol) + info = 101; break; endif