From 0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Tue, 22 Dec 2015 16:45:38 +0530 Subject: general tests added --- .../symphonymat/symphonymat_options1.sce | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/general_tests/symphonymat/symphonymat_options1.sce (limited to 'tests/general_tests/symphonymat/symphonymat_options1.sce') diff --git a/tests/general_tests/symphonymat/symphonymat_options1.sce b/tests/general_tests/symphonymat/symphonymat_options1.sce new file mode 100644 index 0000000..8da8547 --- /dev/null +++ b/tests/general_tests/symphonymat/symphonymat_options1.sce @@ -0,0 +1,28 @@ +// Check for size of input of options +// Objective function +c = [350*5,330*3,310*4,280*6,500,450,400,100]'; + +// Lower Bound of variable +lb = repmat(0,1,8); + +// Upper Bound of variables +ub = [repmat(1,1,4) repmat(%inf,1,4)]; + +// Constraint Matrix +Aeq = [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;] + +beq = [ 25, 1.25, 1.25] + +intcon = [1 2 3 4]; + +options = list("time_limit"); + +// Calling Symphony +[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options) + +//Error +//Symphonymat: Size of parameters should be even +//at line 272 of function symphonymat called by : +//[x,f,status,output] = symphonymat(c,intcon,[],[],Aeq,beq,lb,ub,options) -- cgit