summaryrefslogtreecommitdiff
path: root/tests/general_tests/linprog/linprog_primal_infeasible1.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/linprog/linprog_primal_infeasible1.sce')
-rw-r--r--tests/general_tests/linprog/linprog_primal_infeasible1.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/general_tests/linprog/linprog_primal_infeasible1.sce b/tests/general_tests/linprog/linprog_primal_infeasible1.sce
new file mode 100644
index 0000000..e267e13
--- /dev/null
+++ b/tests/general_tests/linprog/linprog_primal_infeasible1.sce
@@ -0,0 +1,34 @@
+//Primal Infeasible Problem
+c=[-1,-1,-1]'
+A=[1,2,-1]
+b=[-4]
+Aeq=[1,5,3;1,1,0]
+beq=[10,100]
+lb=[0,0,0]
+ub=[%inf,%inf,%inf]
+
+//Output
+//Primal Infeasible.
+// lambda =
+//
+// reduced_cost: [0,2.5,0]
+// ineqlin: -0.5
+// eqlin: [-0.5,0]
+// output =
+//
+// Iterations: 2
+// constrviolation: 100.5
+// exitflag =
+//
+// 1.
+// fopt =
+//
+// - 3.
+// xopt =
+//
+// - 0.5
+// 0.
+// 3.5
+
+[xopt,fopt,exitflag,output,lambda]= linprog(c,A,b,Aeq,beq,lb,ub)
+