From eb9ca1191c94059cd7adcf69805906c809fe9712 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Tue, 29 Dec 2015 00:38:48 +0530 Subject: Bugs fixed 4 --- tests/general_tests/symphony/symphony_A2.sce | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/general_tests/symphony/symphony_A2.sce (limited to 'tests/general_tests/symphony/symphony_A2.sce') diff --git a/tests/general_tests/symphony/symphony_A2.sce b/tests/general_tests/symphony/symphony_A2.sce new file mode 100644 index 0000000..43a61e7 --- /dev/null +++ b/tests/general_tests/symphony/symphony_A2.sce @@ -0,0 +1,34 @@ +// Check the size for A +// A basic case : + +// Objective function +c = [350*5,330*3,310*4,280*6,500,450,400,100]'; + +// Lower Bound of variable +lb = repmat(0,8,1); + +// Upper Bound of variables +ub = [repmat(1,4,1);repmat(%inf,4,1)]; + +// Constraint Matrix +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;] + +// 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)]; + +// Error +//Symphony: The number of rows in constraint should be equal to the number of constraints +//at line 238 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,A,conlb,conub,1) + + -- cgit