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

  1. function [f,g]=costqp(x,H,f,A,b)
  2. %COSTQP Cost function and constraints for QP problem. Used by QPNEGDEF to
  3. %    solve non positive definite problems.
  4. f = 0.5*x'*H*x + f'*x;
  5. g = A * x - b;
  6.