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/lsqnonneg | |
parent | d5356061fbd3a9b3052dee25bd9c82c375c42e22 (diff) | |
download | symphony-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.tar.gz symphony-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.tar.bz2 symphony-dad86bd42cdc2a0e56df9e0591879e5d26fd56fa.zip |
constrviolation and licence file added
Diffstat (limited to 'tests/general_tests/lsqnonneg')
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_logical1.sce (renamed from tests/general_tests/lsqnonneg/lsqnonneg_logical.sce) | 1 | ||||
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_logical2.sce | 44 | ||||
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_maxiter.sce | 1 | ||||
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce | 1 |
4 files changed, 47 insertions, 0 deletions
diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_logical.sce b/tests/general_tests/lsqnonneg/lsqnonneg_logical1.sce index 5f59f8c..b151d73 100644 --- a/tests/general_tests/lsqnonneg/lsqnonneg_logical.sce +++ b/tests/general_tests/lsqnonneg/lsqnonneg_logical1.sce @@ -19,6 +19,7 @@ d = [89; // output = // // Iterations: 7 +// ConstrViolation: 0 // exitflag = // // 0 diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_logical2.sce b/tests/general_tests/lsqnonneg/lsqnonneg_logical2.sce new file mode 100644 index 0000000..f19ab00 --- /dev/null +++ b/tests/general_tests/lsqnonneg/lsqnonneg_logical2.sce @@ -0,0 +1,44 @@ +// An example with C and d as input +C = [1 1 1; + 1 1 0; + 0 1 1; + 1 0 0; + 0 0 1] +d = [89; + 67; + 53; + 35; + 20] +options = list("MaxIter", 300); + +//Output +//Optimal Solution Found. +// lambda = +// +// lower: [5.131D-09,5.546D-09,8.739D-09] +// upper: [0,0,0] +// output = +// +// Iterations: 7 +// ConstrViolation: 0 +// exitflag = +// +// 0 +// residual = +// +// 0.75 +// - 0.625 +// - 0.125 +// - 0.125 +// - 0.625 +// resnorm = +// +// 1.375 +// xopt = +// +// 35.125 +// 32.5 +// 20.625 + +[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,options) + diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_maxiter.sce b/tests/general_tests/lsqnonneg/lsqnonneg_maxiter.sce index fa61c73..cbafee5 100644 --- a/tests/general_tests/lsqnonneg/lsqnonneg_maxiter.sce +++ b/tests/general_tests/lsqnonneg/lsqnonneg_maxiter.sce @@ -19,6 +19,7 @@ options = list("MaxIter",1) // output = // // Iterations: 1 +// ConstrViolation: 0 // exitflag = // // 1 diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce b/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce index e454f42..cd1eb06 100644 --- a/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce +++ b/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce @@ -11,6 +11,7 @@ d = [0]; // output = // // Iterations: 3 +// ConstrViolation: 0 // exitflag = // // 0 |