Mercurial > hg > octave-avbm
changeset 156:8dc079be9dc5
[project @ 1993-10-13 20:27:26 by jwe]
(qpsol): Don't try to create the linear constraint object before
checking array sizes. Wouldn't exception handling be nice?
author | jwe |
---|---|
date | Wed, 13 Oct 1993 20:27:26 +0000 |
parents | d46c6323a190 |
children | 94aa0774c417 |
files | src/qpsol.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qpsol.cc +++ b/src/qpsol.cc @@ -142,11 +142,11 @@ Matrix A = args[nargin-2].to_matrix (); ColumnVector llb = args[nargin-3].to_vector (); - LinConst linear_constraints (llb, A, lub); - if (! linear_constraints_ok (x, llb, A, lub, "qpsol", 1)) return retval; + LinConst linear_constraints (llb, A, lub); + if (nargin == 9) { // 3. qpsol (x, H, c, lb, ub, llb, A, lub)