octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47314] quadprog() equality constraints have o


From: Ray Zimmerman
Subject: [Octave-bug-tracker] [bug #47314] quadprog() equality constraints have opposite sign
Date: Wed, 02 Mar 2016 13:21:02 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4

Follow-up Comment #2, bug #47314 (project octave):

The sign of the shadow prices (lambdas) on the equality constraints depends on
the convention used to implement the constraints. Apparently, the Octave
implementation of quadprog() uses the opposite convention from the Matlab
version for the multipliers on the equality constraints. This results in an
incompatibility with Matlab.

As mentioned in my original bug report, the fix is trivial. It is simply to
add this negative sign to line 382 in quadprog.m:


      lambda.eqlin = -qp_lambda(lm_idx:lm_idx + n_eq - count_not_ineq - 1);
                     ^
                     |


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47314>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]