summaryrefslogtreecommitdiff
path: root/demos/fminunc.dem.sce
diff options
context:
space:
mode:
Diffstat (limited to 'demos/fminunc.dem.sce')
-rw-r--r--demos/fminunc.dem.sce4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/fminunc.dem.sce b/demos/fminunc.dem.sce
index a43603e..c68aaeb 100644
--- a/demos/fminunc.dem.sce
+++ b/demos/fminunc.dem.sce
@@ -20,7 +20,7 @@ function y= fHess(x)
y= [1200*x(1)^2- 400*x(2) + 2, -400*x(1);-400*x(1), 200 ];
endfunction
//Options
-options=list("MaxIter", [1500], "CpuTime", [500], "Gradient", fGrad, "Hessian", fHess);
+options=list("MaxIter", [1500], "CpuTime", [500], "GradObj", fGrad, "Hessian", fHess);
//Calling Ipopt
[xopt,fopt,exitflag,output,gradient,hessian]=fminunc(f,x0,options)
// Press ENTER to continue
@@ -57,7 +57,7 @@ function y= fHess(x)
y= [-2,0;0,-2];
endfunction
//Options
-options=list("MaxIter", [1500], "CpuTime", [500], "Gradient", fGrad, "Hessian", fHess);
+options=list("MaxIter", [1500], "CpuTime", [500], "GradObj", fGrad, "Hessian", fHess);
//Calling Ipopt
[xopt,fopt,exitflag,output,gradient,hessian]=fminunc(f,x0,options)
//========= E N D === O F === D E M O =========//