# HG changeset patch # User jwe # Date 1114616333 0 # Node ID 2fbcdc356fc72ead339c262cc82cdb857386a97e # Parent 15031c6fab31d7e3ab5409a0af3879cb68886e0e [project @ 2005-04-27 15:38:53 by jwe] diff -r 15031c6fab31 -r 2fbcdc356fc7 scripts/ChangeLog --- a/scripts/ChangeLog Wed Apr 27 07:58:14 2005 +0000 +++ b/scripts/ChangeLog Wed Apr 27 15:38:53 2005 +0000 @@ -1,3 +1,7 @@ +2005-04-27 John W. Eaton + + * optimization/qp.m: Define n_in after removing -Inf bounds from Ain. + 2005-04-21 John W. Eaton * optimization/glpk.m: Handle SENSE argument. diff -r 15031c6fab31 -r 2fbcdc356fc7 scripts/optimization/qp.m --- a/scripts/optimization/qp.m Wed Apr 27 07:58:14 2005 +0000 +++ b/scripts/optimization/qp.m Wed Apr 27 15:38:53 2005 +0000 @@ -166,7 +166,6 @@ endif endif endif - n_in = length (bin); ## Now we should have the following QP: ## @@ -180,6 +179,8 @@ bin(idx) = []; Ain(idx,:) = []; + n_in = length (bin); + ## Check if the initial guess is feasible. rtol = sqrt (eps);