summaryrefslogtreecommitdiff
path: root/qpipoptmat/qpipoptmat_logical1.sce
diff options
context:
space:
mode:
Diffstat (limited to 'qpipoptmat/qpipoptmat_logical1.sce')
-rw-r--r--qpipoptmat/qpipoptmat_logical1.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/qpipoptmat/qpipoptmat_logical1.sce b/qpipoptmat/qpipoptmat_logical1.sce
new file mode 100644
index 0000000..39957b5
--- /dev/null
+++ b/qpipoptmat/qpipoptmat_logical1.sce
@@ -0,0 +1,26 @@
+// 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)
+
+//Output
+// lambda =
+//
+// lower: [0,0,0]
+// upper: [0,0,0]
+// constraint: [0x0 constant]
+// output =
+//
+// Iterations: 1
+// exitflag =
+//
+// 0
+// fopt =
+//
+// - 249.
+// xopt =
+//
+// 3.
+// 5.
+// 7.