diff options
author | Harpreet | 2015-12-29 00:38:48 +0530 |
---|---|---|
committer | Harpreet | 2015-12-29 00:38:48 +0530 |
commit | eb9ca1191c94059cd7adcf69805906c809fe9712 (patch) | |
tree | f98e728341812b8a0eb46aa4159b062a22225f05 /tests/general_tests/symphony/symphony_isInt1.sce | |
parent | 0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9 (diff) | |
download | FOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.tar.gz FOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.tar.bz2 FOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.zip |
Bugs fixed 4
Diffstat (limited to 'tests/general_tests/symphony/symphony_isInt1.sce')
-rw-r--r-- | tests/general_tests/symphony/symphony_isInt1.sce | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/general_tests/symphony/symphony_isInt1.sce b/tests/general_tests/symphony/symphony_isInt1.sce index 914ccb2..fc79a3d 100644 --- a/tests/general_tests/symphony/symphony_isInt1.sce +++ b/tests/general_tests/symphony/symphony_isInt1.sce @@ -1,4 +1,4 @@ -// Check for size of Objective Coefficient +// Check for size of isInt // A basic case : // Objective function @@ -11,7 +11,7 @@ lb = repmat(0,8,1); ub = [repmat(1,4,1);repmat(%inf,4,1)]; // Constraint Matrix -conMatrix = [5,3,4,6,1,1,1,1; +A = [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;] @@ -24,10 +24,12 @@ 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,2)]; -// Calling Symphony -[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1) - // Error //Symphony: The size of isInt is not equal to the number of variables //at line 220 of function symphony called by : -//[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1) +//[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,A,conlb,conub,1) + +// Calling Symphony +[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,A,conlb,conub,1) + + |