summaryrefslogtreecommitdiff
path: root/tests/general_tests/symphony/symphony_ub1.sce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general_tests/symphony/symphony_ub1.sce')
-rw-r--r--tests/general_tests/symphony/symphony_ub1.sce20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/general_tests/symphony/symphony_ub1.sce b/tests/general_tests/symphony/symphony_ub1.sce
index 74f4af1..75a9f9c 100644
--- a/tests/general_tests/symphony/symphony_ub1.sce
+++ b/tests/general_tests/symphony/symphony_ub1.sce
@@ -1,4 +1,4 @@
-// Check for size of Objective Coefficient
+// Check for size of upper bound
// A basic case :
// Objective function
@@ -8,10 +8,10 @@ c = [350*5,330*3,310*4,280*6,500,450,400,100]';
lb = repmat(0,8,1);
// Upper Bound of variables
-ub = [repmat(1,4,1);repmat(%inf,4,1)];
+ub = [repmat(1,4,1);repmat(%inf,3,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;]
@@ -19,15 +19,17 @@ conMatrix = [5,3,4,6,1,1,1,1;
conlb = [ 25; 1.25; 1.25]
// Upper Bound of constrains
-conub = [ 25; 1.25;]
+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)];
+// Error
+//Symphony: The Upper Bound is not equal to the number of variables
+//at line 268 of function symphony called by :
+//[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,conMatrix,conlb,conub,1)
+[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,A,conlb,conub,1)
+
-// Error
-//Symphony: The Upper Bound of constraint is not equal to the number of constraint
-//at line 232 of function symphony called by :
-//[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1)