summaryrefslogtreecommitdiff
path: root/tests/general_tests/linprog/linprog_dual_infeasible1.sce
diff options
context:
space:
mode:
authorHarpreet2016-01-29 16:38:03 +0530
committerHarpreet2016-01-29 16:38:03 +0530
commitf7c5cbc61d5b52c749824298cfa39a95db2d879c (patch)
tree27aafcca0159b7b3bb2926ff3a9c6c25834980d2 /tests/general_tests/linprog/linprog_dual_infeasible1.sce
parent2db803c34c6df02379ec88df3a7aa186700d9fbf (diff)
downloadsymphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.gz
symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.bz2
symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.zip
linprog general tests added
Diffstat (limited to 'tests/general_tests/linprog/linprog_dual_infeasible1.sce')
-rw-r--r--tests/general_tests/linprog/linprog_dual_infeasible1.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/general_tests/linprog/linprog_dual_infeasible1.sce b/tests/general_tests/linprog/linprog_dual_infeasible1.sce
new file mode 100644
index 0000000..9b910f4
--- /dev/null
+++ b/tests/general_tests/linprog/linprog_dual_infeasible1.sce
@@ -0,0 +1,31 @@
+ //Dual Infeasible Problem
+ c=[3,5,-7]'
+ A=[-1,-1,4;1,1,4]
+ b=[-8,5]
+ Aeq=[]
+ beq=[]
+ lb=[-%inf,-%inf,-%inf]
+ ub=[%inf,%inf,%inf]
+ //Output
+ // Dual Infeasible.
+ // lambda =
+ //
+ // reduced_cost: [0,2,0]
+ // ineqlin: [-2.375,0.625]
+ // eqlin: [0x0 constant]
+ // output =
+ //
+ // Iterations: 2
+ // constrviolation: 0
+ // exitflag =
+ //
+ // 2.
+ // fopt =
+ //
+ // 22.125
+ // xopt =
+ //
+ // 6.5
+ // 0.
+ // - 0.375
+ [xopt,fopt,exitflag,output,lambda]= linprog(c,A,b,Aeq,beq,lb,ub)