summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_zeros.sce
diff options
context:
space:
mode:
authorHarpreet2015-12-31 16:03:57 +0530
committerHarpreet2015-12-31 16:03:57 +0530
commitd5356061fbd3a9b3052dee25bd9c82c375c42e22 (patch)
tree72a37d5161eb0f4b895513c46c68e031d1200520 /tests/general_tests/lsqlin/lsqlin_zeros.sce
parenteb9ca1191c94059cd7adcf69805906c809fe9712 (diff)
downloadsymphony-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.gz
symphony-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.bz2
symphony-d5356061fbd3a9b3052dee25bd9c82c375c42e22.zip
Macros example updated
Diffstat (limited to 'tests/general_tests/lsqlin/lsqlin_zeros.sce')
-rw-r--r--tests/general_tests/lsqlin/lsqlin_zeros.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/general_tests/lsqlin/lsqlin_zeros.sce b/tests/general_tests/lsqlin/lsqlin_zeros.sce
new file mode 100644
index 0000000..2695ff1
--- /dev/null
+++ b/tests/general_tests/lsqlin/lsqlin_zeros.sce
@@ -0,0 +1,32 @@
+// Check for all zeros
+C = [0];
+d = [0];
+A = [0];
+b = [0];
+// Output
+//Optimal Solution Found.
+// lambda =
+//
+// lower: 0
+// upper: 0
+// eqlin: [0x0 constant]
+// ineqlin: 0.999901
+// output =
+//
+// Iterations: 2
+// exitflag =
+//
+// 0
+// residual =
+//
+// 0.
+// resnorm =
+//
+// 0.
+// xopt =
+//
+// 0.
+
+[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b)
+
+