summaryrefslogtreecommitdiff
path: root/help/en_US/fmincon.xml
diff options
context:
space:
mode:
Diffstat (limited to 'help/en_US/fmincon.xml')
-rw-r--r--help/en_US/fmincon.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/help/en_US/fmincon.xml b/help/en_US/fmincon.xml
index a6bef9f..91569a2 100644
--- a/help/en_US/fmincon.xml
+++ b/help/en_US/fmincon.xml
@@ -315,7 +315,9 @@ y= [x(2),x(1)+x(3),x(2)];
endfunction
//Hessian of the Lagrange Function
function y= lHess(x,obj,lambda)
-y= obj*[0,1,0;1,0,1;0,1,0] + lambda(1)*[2,0,0;0,0,0;0,0,0] + lambda(2)*[2,0,0;0,2,0;0,0,0] +lambda(3)*[0,0,0;0,0,0;0,0,2] + lambda(4)*[6*x(1 ),0,0;0,0,0;0,0,0] + lambda(5)*[0,0,0;0,2,0;0,0,2];
+y= obj*[0,1,0;1,0,1;0,1,0] + lambda(1)*[2,0,0;0,0,0;0,0,0] + ..
+lambda(2)*[2,0,0;0,2,0;0,0,0] +lambda(3)*[0,0,0;0,0,0;0,0,2] + ..
+lambda(4)*[6*x(1),0,0;0,0,0;0,0,0] + lambda(5)*[0,0,0;0,2,0;0,0,2];
endfunction
//Gradient of Non-Linear Constraints
function [cg,ceqg] = cGrad(x)