diff options
author | Harpreet | 2015-11-17 22:24:58 +0530 |
---|---|---|
committer | Harpreet | 2015-11-17 22:24:58 +0530 |
commit | ad6fd408ea41e74e56b31a5bc756639e521a20e3 (patch) | |
tree | 117dfe11397868e23e4177974ee4db6128616157 /symphony/symphony_logical2.sce | |
parent | 6a389f6a51bdd88f89706b1c32276d9e1b71ef22 (diff) | |
download | OR-toolbox-test-cases-ad6fd408ea41e74e56b31a5bc756639e521a20e3.tar.gz OR-toolbox-test-cases-ad6fd408ea41e74e56b31a5bc756639e521a20e3.tar.bz2 OR-toolbox-test-cases-ad6fd408ea41e74e56b31a5bc756639e521a20e3.zip |
all the tests added
Diffstat (limited to 'symphony/symphony_logical2.sce')
-rw-r--r-- | symphony/symphony_logical2.sce | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/symphony/symphony_logical2.sce b/symphony/symphony_logical2.sce new file mode 100644 index 0000000..4666fdc --- /dev/null +++ b/symphony/symphony_logical2.sce @@ -0,0 +1,56 @@ +// Check for size of Objective Coefficient +// A basic case : + +// Objective function +c = [20,10,15]'; + +// Lower Bound of variable +lb = repmat(0,3,1); + +// Upper Bound of variables +ub = repmat(%inf,3,1); + +// Constraint Matrix +conMatrix = [3,2,5; + 2,1,1; + 1,1,3; + 5,2,4] + +// Lower Bound of constrains +conlb = repmat(-%inf,4,1) + +// Upper Bound of constrains +conub = [ 55;26;30;57] + +// Row Matrix for telling symphony that the is integer or not +isInt = [repmat(%f,1,3)]; + +// Calling Symphony +[x,f,status,output] = symphony(3,4,c,isInt,lb,ub,conMatrix,conlb,conub,-1) +disp("x",x,"f",f,"status",status,"output",output); +// Output +//Problem loaded into environment. +// +//Note: There is no limit on time. +// +//An optimal solution has been found. +// +// 0. +// +// Iterations: 1 +// +// output +// +// 227. +// +// status +// +// 268. +// +// f +// +// 1.8 +// 20.8 +// 1.6 +// +// x |