changeset 10542:83de7b060e91

Return correct value (101) from sqp on succes. Fixes bug #29577.
author Rik <code@nomad.inbox5.com>
date Thu, 22 Apr 2010 20:01:15 -0700
parents e9d1a974a517
children f41c6634d5af
files scripts/ChangeLog scripts/optimization/sqp.m
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <octave@nomad.inbox5.com>
+
+	* optimization/sqp.m: Return correct value (101) on succes.  Fixes bug #29577
+
 2010-04-22  Rik <octave@nomad.inbox5.com>
 
 	* optimization/glpk.m: Eliminate repmat (Inf, x , y) and just use Inf (x,y)
--- 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