diff options
author | Georgey | 2017-07-05 11:42:11 +0530 |
---|---|---|
committer | Georgey | 2017-07-05 11:42:11 +0530 |
commit | 536bbd0cd8e4ca5b29d07e472e682bbb5db63a97 (patch) | |
tree | 7b7c9ee9b99de05aa95db57063a3ca2f84a846eb /tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce | |
parent | 938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 (diff) | |
download | FOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.tar.gz FOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.tar.bz2 FOSSEE-Optimization-toolbox-536bbd0cd8e4ca5b29d07e472e682bbb5db63a97.zip |
Updated tests for int and ecos functions
Diffstat (limited to 'tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce')
-rw-r--r-- | tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce b/tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce new file mode 100644 index 0000000..1d554c1 --- /dev/null +++ b/tests/general_tests/cbcintlinprog/cbcintlinprog_primal_infeasible2.sce @@ -0,0 +1,42 @@ +// Primal Infeasible + +// Reference :Example 5-4, The Simplex method and Sensitivity Analysis, Hamdy A. Taha. "Operations Research-An Introduction", 9E(2014)) + +// Objective function +c = [-3,-2]'; + +// Lower Bound of variable +lb = [0,0] +// Upper Bound of variables +ub = [%inf,%inf] + +// Constraint Matrix +A = [2,1; +-3,-4;] + +b=[2,-12] + +intcon = [1 2]; + +// Calling cbcintlinprog +[x,f,status,output] = cbcintlinprog(c,intcon,A,b,[],[],lb,ub) +// output = +// +// relativegap: 0 +// absolutegap: 0 +// numnodes: 0 +// numfeaspoints: 2 +// numiterations: 0 +// constrviolation: 4 +// message: "Primal Infeasible" +// status = +// +// 1. +// f = +// +// 1.79D+308 +// x = +// +// 0. +// 2. +// |