diff options
author | Harpreet | 2015-12-22 16:45:38 +0530 |
---|---|---|
committer | Harpreet | 2015-12-22 16:45:38 +0530 |
commit | 0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9 (patch) | |
tree | 1a38ee971248f8c1efe226dced15b66764c412d1 /tests/general_tests/symphonymat/symphonymat_logical2.sce | |
parent | b4fe1077092f3dc1c1d965e938b00e0a0d0694d0 (diff) | |
download | FOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.tar.gz FOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.tar.bz2 FOSSEE-Optimization-toolbox-0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9.zip |
general tests added
Diffstat (limited to 'tests/general_tests/symphonymat/symphonymat_logical2.sce')
-rw-r--r-- | tests/general_tests/symphonymat/symphonymat_logical2.sce | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/general_tests/symphonymat/symphonymat_logical2.sce b/tests/general_tests/symphonymat/symphonymat_logical2.sce new file mode 100644 index 0000000..6bdd1b3 --- /dev/null +++ b/tests/general_tests/symphonymat/symphonymat_logical2.sce @@ -0,0 +1,53 @@ +// Check for size of Objective Coefficient +// A basic case : + +// Objective function +c = -1*[20,10,15]'; + +// Lower Bound of variable +lb = repmat(0,3,1); + +// Upper Bound of variables +ub = repmat(%inf,3,1); + +// Constraint Matrix +A = [3,2,5; + 2,1,1; + 1,1,3; + 5,2,4] + +// Upper Bound of constrains +b = [ 55;26;30;57] + +// Row Matrix for telling symphony that the is integer or not +intcon = []; + +// Calling Symphony +[x,f,status,output] = symphonymat(c,intcon,A,b,[],[],lb,ub) +disp("x",x,"f",f,"status",status,"output",output); +// Output +//Problem loaded into environment. +// +//Note: There is no limit on time. +// +//An optimal solution has been found. +// +// 0. +// +// Iterations: 1 +// +// output +// +// 227. +// +// status +// +// - 268. +// +// f +// +// 1.8 +// 20.8 +// 1.6 +// +// x |