summaryrefslogtreecommitdiff
path: root/tests/general_tests/fminbnd/fminbnd_logical13.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/fminbnd/fminbnd_logical13.sce')
-rw-r--r--tests/general_tests/fminbnd/fminbnd_logical13.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/general_tests/fminbnd/fminbnd_logical13.sce b/tests/general_tests/fminbnd/fminbnd_logical13.sce
new file mode 100644
index 0000000..64debea
--- /dev/null
+++ b/tests/general_tests/fminbnd/fminbnd_logical13.sce
@@ -0,0 +1,32 @@
+
+function y = fun(x)
+ y = -sqrt(x^3);
+endfunction
+x1 = [-10];
+x2 = [-5];
+
+//Output
+//
+//Optimal Solution Found.
+// lambda =
+//
+// lower: 0.0000036
+// upper: 0.0000036
+// output =
+//
+// Iterations: 4
+// Cpu_Time: 0.028
+// Objective_Evaluation: 5
+// Dual_Infeasibility: 0
+// Message: "Optimal Solution Found"
+// exitflag =
+//
+// 0
+// fopt =
+//
+// 0.
+// xopt =
+//
+// - 5.4668503
+
+[xopt,fopt,exitflag,output,lambda] = fminbnd (fun, x1, x2)