diff options
Diffstat (limited to 'tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce')
-rw-r--r-- | tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce b/tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce new file mode 100644 index 0000000..8832300 --- /dev/null +++ b/tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce @@ -0,0 +1,35 @@ +// Check for the Q to be a symmetric matrix + +f=[2 -35 -47]'; +H =[5 -2 -1; -2 4 3; -1 3 5]; +[xopt,fopt,exitflag,output,lambda]=qpipoptmat(H,f) +disp("xopt",xopt,"fopt",fopt,"exitflag",exitflag,"output",output,"lambda",lambda) + +//Output +// +//Optimal Solution Found. +// +// lower: [0,0,0] +// upper: [0,0,0] +// ineqlin: [0x0 constant] +// eqlin: [0x0 constant] +// +// lambda +// +// Iterations: 1 +// +// output +// +// 0 +// +// exitflag +// +// - 249. +// +// fopt +// +// 3. +// 5. +// 7. +// +// xopt |