summaryrefslogtreecommitdiff
path: root/tests/general_tests/linprog/linprog_b1.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/linprog/linprog_b1.sce')
-rw-r--r--tests/general_tests/linprog/linprog_b1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/general_tests/linprog/linprog_b1.sce b/tests/general_tests/linprog/linprog_b1.sce
new file mode 100644
index 0000000..6b8ecd8
--- /dev/null
+++ b/tests/general_tests/linprog/linprog_b1.sce
@@ -0,0 +1,17 @@
+// Check for elements in b
+c=[-1,-1/3]'
+A=[1,1;1,1/4;1,-1;-1/4,-1;-1,-1;-1,1]
+b=[2,1,2,1,-1,2]
+Aeq=[1,1/4]
+beq=[1/2]
+
+//Error
+//linprog: The number of rows in A must be the same as the number of elements of b
+//at line 133 of function matrix_linprog called by :
+//at line 169 of function linprog called by :
+//[xopt,fopt,exitflag,output,lambda]=linprog(c, A, beq, Aeq, beq)
+//at line 16 of exec file called by :
+//exec linprog_b1.sce
+
+[xopt,fopt,exitflag,output,lambda]=linprog(c, A, beq, Aeq, beq)
+