summaryrefslogtreecommitdiff
path: root/tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce
diff options
context:
space:
mode:
authorHarpreet2015-12-22 16:45:38 +0530
committerHarpreet2015-12-22 16:45:38 +0530
commit0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9 (patch)
tree1a38ee971248f8c1efe226dced15b66764c412d1 /tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce
parentb4fe1077092f3dc1c1d965e938b00e0a0d0694d0 (diff)
downloadFOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.tar.gz
FOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.tar.bz2
FOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.zip
general tests added
Diffstat (limited to 'tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce')
-rw-r--r--tests/general_tests/qpipoptmat/qpipoptmat_logical1.sce35
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