summaryrefslogtreecommitdiff
path: root/tests/general_tests/intfmincon/intfmincon_logical12.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/intfmincon/intfmincon_logical12.sce')
-rw-r--r--tests/general_tests/intfmincon/intfmincon_logical12.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/general_tests/intfmincon/intfmincon_logical12.sce b/tests/general_tests/intfmincon/intfmincon_logical12.sce
new file mode 100644
index 0000000..f40e8ac
--- /dev/null
+++ b/tests/general_tests/intfmincon/intfmincon_logical12.sce
@@ -0,0 +1,32 @@
+// Example with Infeasible solution
+function y=fun(x)
+ y=-sum(exp(x))
+endfunction
+
+x0 = [repmat(1,1,20)];
+A=[-1,-5,-3 repmat(0,1,17); -0.5,-2.5 -1.5 repmat(0,1,17);];
+b=[-100 -50]';
+intcon=[1,2];
+
+lb = repmat(0,1,20);
+ub = repmat(10,1,20);
+
+// InFeasible Solution.
+// hessian =
+
+// []
+// gradient =
+
+// []
+// exitflag =
+
+// 1
+// fopt =
+
+// 0.
+// x0pt =
+
+// []
+
+
+[x0pt,fopt,exitflag,gradient,hessian] = intfmincon(fun,x0,intcon,A,b,[],[],lb,ub)