home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 4.ddi / OPTIM.DI$ / COSTQPG.M < prev    next >
Encoding:
Text File  |  1993-02-05  |  192 b   |  6 lines

  1. function [df,dg]=costqpg(x,H,f,A,b)
  2. %COSTQPG Cost function and constraint gradients for QP problem. 
  3. %    Used by QPNEGDEF to solve non positive definite problems.
  4. df = H*x + f(:);
  5. dg = A';
  6.