summaryrefslogtreecommitdiff
path: root/tests/general_tests/qpipopt/qpipopt_zeros.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/qpipopt/qpipopt_zeros.sce')
-rw-r--r--tests/general_tests/qpipopt/qpipopt_zeros.sce42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/general_tests/qpipopt/qpipopt_zeros.sce b/tests/general_tests/qpipopt/qpipopt_zeros.sce
new file mode 100644
index 0000000..9604c4d
--- /dev/null
+++ b/tests/general_tests/qpipopt/qpipopt_zeros.sce
@@ -0,0 +1,42 @@
+
+// A simple example without constraints and all values to zero
+A= [];
+conLB=[];
+conUB = [];
+lb=[];
+ub=[];
+f=[0]';
+H =[0];
+nbVar = 1;
+nbCon = 0;
+
+
+//Output
+//
+//Optimal Solution Found.
+
+// lower: 0
+// upper: 0
+// constraint: [0x0 constant]
+//
+// lambda
+//
+// Iterations: 0
+//
+// output
+//
+// 0
+//
+// exitflag
+//
+// 0.
+//
+// fopt
+//
+// 0.
+//
+// xopt
+
+[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,H,f,lb,ub,A,conLB,conUB)
+
+