diff options
Diffstat (limited to 'tests/general_tests/fminbnd/fminbnd_logical12.sce')
-rw-r--r-- | tests/general_tests/fminbnd/fminbnd_logical12.sce | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/general_tests/fminbnd/fminbnd_logical12.sce b/tests/general_tests/fminbnd/fminbnd_logical12.sce new file mode 100644 index 0000000..0613aa8 --- /dev/null +++ b/tests/general_tests/fminbnd/fminbnd_logical12.sce @@ -0,0 +1,31 @@ + +function y = fun(x) + y = log(x); +endfunction +x1 = [-10]; +x2 = [0]; + +//Output +// +//Optimal Solution Found. +// lambda = +// +// lower: 0.0000018 +// upper: 0.0000018 +// output = +// +// Iterations: 4 +// Cpu_Time: 0.028 +// Objective_Evaluation: 5 +// Dual_Infeasibility: 0 +// Message: "Optimal Solution Found" +// exitflag = +// +// 0 +// fopt = +// +// 0. +// xopt = +// +// - 0.7727429 +[xopt,fopt,exitflag,output,lambda] = fminbnd (fun, x1, x2) |