diff options
author | Harpreet | 2016-01-05 12:22:43 +0530 |
---|---|---|
committer | Harpreet | 2016-01-05 12:22:43 +0530 |
commit | dad86bd42cdc2a0e56df9e0591879e5d26fd56fa (patch) | |
tree | ce56ce617425627652308e2a592527cd9aa2a396 /tests/general_tests/symphonymat/symphonymat_logical4.sce | |
parent | d5356061fbd3a9b3052dee25bd9c82c375c42e22 (diff) | |
download | FOSSEE-Optimization-toolbox-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.tar.gz FOSSEE-Optimization-toolbox-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.tar.bz2 FOSSEE-Optimization-toolbox-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.zip |
constrviolation and licence file added
Diffstat (limited to 'tests/general_tests/symphonymat/symphonymat_logical4.sce')
-rw-r--r-- | tests/general_tests/symphonymat/symphonymat_logical4.sce | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/general_tests/symphonymat/symphonymat_logical4.sce b/tests/general_tests/symphonymat/symphonymat_logical4.sce new file mode 100644 index 0000000..ccb53a5 --- /dev/null +++ b/tests/general_tests/symphonymat/symphonymat_logical4.sce @@ -0,0 +1,46 @@ +// An example with equality constraints and variable bounds + +// A basic case : + +c = -1*[20,10,15]'; + +A = [3,2,5; + 2,1,1; + 1,1,3; + 5,2,4] + +b = [ 55;26;30;57] + +Aeq = [2 3 5] + +beq = [5] + +intcon = []; + +lb = repmat(0,3,1); +ub = repmat(8,3,1); + +// Output +//Problem loaded into environment. + +//Note: There is no limit on time. + +//An optimal solution has been found. +// output = +// +// Iterations: 1 +// status = +// +// 227. +// f = +// +// - 50. +// x = +// +// 2.5 +// 0. +// 0. + +// Calling Symphony +[x,f,status,output] = symphonymat(c,intcon,A,b,Aeq,beq,lb,ub) + |