summaryrefslogtreecommitdiff
path: root/tests/unit_tests/fminunc.tst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/fminunc.tst')
-rw-r--r--tests/unit_tests/fminunc.tst2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/fminunc.tst b/tests/unit_tests/fminunc.tst
index d8cc387..c0581c4 100644
--- a/tests/unit_tests/fminunc.tst
+++ b/tests/unit_tests/fminunc.tst
@@ -69,7 +69,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)