summaryrefslogtreecommitdiff
path: root/tests/general_tests/qpipopt/qpipopt_logical_5.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/qpipopt/qpipopt_logical_5.sce')
-rw-r--r--tests/general_tests/qpipopt/qpipopt_logical_5.sce38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/general_tests/qpipopt/qpipopt_logical_5.sce b/tests/general_tests/qpipopt/qpipopt_logical_5.sce
new file mode 100644
index 0000000..f628b86
--- /dev/null
+++ b/tests/general_tests/qpipopt/qpipopt_logical_5.sce
@@ -0,0 +1,38 @@
+// A simple example without constraints
+A= [];
+conLB=[];
+conUB = [];
+lb=[];
+ub=[];
+f=[2 -35 -47]';
+H =[5 -2 -1; -2 4 3; -1 3 5];
+nbVar = 3;
+nbCon = 0;
+
+
+//Output
+//
+//Optimal Solution Found.
+// lambda =
+//
+// lower: [0,0,0]
+// upper: [0,0,0]
+// constraint: [0x0 constant]
+// output =
+//
+// Iterations: 1
+// ConstrViolation: 0
+// exitflag =
+//
+// 0
+// fopt =
+//
+// - 249.
+// xopt =
+//
+// 3.
+// 5.
+// 7.
+
+[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,H,f,lb,ub,A,conLB,conUB)
+