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/symphony/symphony_c2.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/symphony/symphony_c2.sce')
-rw-r--r-- | tests/general_tests/symphony/symphony_c2.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/general_tests/symphony/symphony_c2.sce b/tests/general_tests/symphony/symphony_c2.sce new file mode 100644 index 0000000..41f9720 --- /dev/null +++ b/tests/general_tests/symphony/symphony_c2.sce @@ -0,0 +1,33 @@ +// Check for size of Objective Coefficient +// A basic case : + +// Objective function +c = [350*5,330*3,310*4,280*6,500,450,400]; + +// Lower Bound of variable +lb = repmat(0,8,1); + +// Upper Bound of variables +ub = [repmat(1,4,1);repmat(%inf,4,1)]; + +// Constraint Matrix +conMatrix = [5,3,4,6,1,1,1,1; +5*0.05,3*0.04,4*0.05,6*0.03,0.08,0.07,0.06,0.03; +5*0.03,3*0.03,4*0.04,6*0.04,0.06,0.07,0.08,0.09;] + +// Lower Bound of constrains +conlb = [ 25; 1.25; 1.25] + +// Upper Bound of constrains +conub = [ 25; 1.25; 1.25] + +// Row Matrix for telling symphony that the is integer or not +isInt = [repmat(%t,1,4) repmat(%f,1,4)]; + +// Calling Symphony +[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1) + +// Error +//Symphony: Objective Coefficients should be a column matrix +//at line 209 of function symphony called by : +//[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1) |