diff options
author | Harpreet | 2016-01-29 16:38:03 +0530 |
---|---|---|
committer | Harpreet | 2016-01-29 16:38:03 +0530 |
commit | f7c5cbc61d5b52c749824298cfa39a95db2d879c (patch) | |
tree | 27aafcca0159b7b3bb2926ff3a9c6c25834980d2 /tests/general_tests/linprog/linprog_logical1.sce | |
parent | 2db803c34c6df02379ec88df3a7aa186700d9fbf (diff) | |
download | FOSSEE-Optimization-toolbox-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.gz FOSSEE-Optimization-toolbox-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.bz2 FOSSEE-Optimization-toolbox-f7c5cbc61d5b52c749824298cfa39a95db2d879c.zip |
linprog general tests added
Diffstat (limited to 'tests/general_tests/linprog/linprog_logical1.sce')
-rw-r--r-- | tests/general_tests/linprog/linprog_logical1.sce | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/general_tests/linprog/linprog_logical1.sce b/tests/general_tests/linprog/linprog_logical1.sce new file mode 100644 index 0000000..5dcc011 --- /dev/null +++ b/tests/general_tests/linprog/linprog_logical1.sce @@ -0,0 +1,36 @@ +// An example with inequality constraints +c=[-1,-1/3]' +A=[1,1;1,1/4;1,-1;-1/4,-1;-1,-1;-1,1] +b=[2,1,2,1,-1,2] + +//Output +//Optimal Solution Found. +// lambda = +// +// lower: [0,0] +// upper: [0,0] +// eqlin: [0x0 constant] +// ineqlin: [0.0000422,0.0000089] +// output = +// +// Iterations: 13 +// ConstrViolation: 0 +// exitflag = +// +// 0 +// residual = +// +// 0.3335021 +// 0.6666002 +// - 0.3332976 +// resnorm = +// +// 0.6666667 +// xopt = +// +// 0.3332490 +// - 0.3333512 + +[xopt,fopt,exitflag,output,lambda]=linprog(c, A, b) + + |