The NLP Procedure |
nlincon c1-c3; decvar x1-x2; jacnlc cj1-cj6;correspond to the Jacobian matrix
For example,
array cd[3,4] cd1-cd12; nlincon c1-c3 >= 0; jacnlc cd1-cd12; c1 = 8 - x1 * x1 - x2 * x2 - x3 * x3 - x4 * x4 - x1 + x2 - x3 + x4; c2 = 10 - x1 * x1 - 2 * x2 * x2 - x3 * x3 - 2 * x4 * x4 + x1 + x4; c3 = 5 - 2 * x1 * x2 - x2 * x2 - x3 * x3 - 2 * x1 + x2 + x4; cd[1,1]= -1 - 2 * x1; cd[1,2]= 1 - 2 * x2; cd[1,3]= -1 - 2 * x3; cd[1,4]= 1 - 2 * x4; cd[2,1]= 1 - 2 * x1; cd[2,2]= -4 * x2; cd[2,3]= -2 * x3; cd[2,4]= 1 - 4 * x4; cd[3,1]= -2 - 4 * x1; cd[3,2]= 1 - 2 * x2; cd[3,3]= -2 * x3; cd[3,4]= 1;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.