diff options
Diffstat (limited to 'tests/general_tests/qpipopt/qpipopt_logical_2.sce')
-rw-r--r-- | tests/general_tests/qpipopt/qpipopt_logical_2.sce | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/general_tests/qpipopt/qpipopt_logical_2.sce b/tests/general_tests/qpipopt/qpipopt_logical_2.sce new file mode 100644 index 0000000..933508b --- /dev/null +++ b/tests/general_tests/qpipopt/qpipopt_logical_2.sce @@ -0,0 +1,42 @@ + +// A simple example without constraints +conMatrix= []; +conLB=[]; +conUB = []; +lb=[]; +ub=[]; +p=[2 -35 -47]'; +Q =[5 -2 -1; -2 4 3; -1 3 5]; +nbVar = 3; +nbCon = 0; +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB) +disp("xopt",xopt,"fopt",fopt,"exitflag",exitflag,"output",output,"lambda",lambda) + + +//Output +// +//Optimal Solution Found. +// +// lower: [0,0,0] +// upper: [0,0,0] +// constraint: [0x0 constant] +// +// lambda +// +// Iterations: 1 +// +// output +// +// 0 +// +// exitflag +// +// - 249. +// +// fopt +// +// 3. +// 5. +// 7. +// +// xopt |