diff options
author | Harpreet | 2015-12-31 16:03:57 +0530 |
---|---|---|
committer | Harpreet | 2015-12-31 16:03:57 +0530 |
commit | d5356061fbd3a9b3052dee25bd9c82c375c42e22 (patch) | |
tree | 72a37d5161eb0f4b895513c46c68e031d1200520 /tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce | |
parent | eb9ca1191c94059cd7adcf69805906c809fe9712 (diff) | |
download | FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.gz FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.tar.bz2 FOSSEE-Optimization-toolbox-d5356061fbd3a9b3052dee25bd9c82c375c42e22.zip |
Macros example updated
Diffstat (limited to 'tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce')
-rw-r--r-- | tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce b/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce new file mode 100644 index 0000000..e454f42 --- /dev/null +++ b/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce @@ -0,0 +1,28 @@ +// Check for all zeros as input +C = [0]; +d = [0]; + +//Output +//Optimal Solution Found. +// lambda = +// +// lower: 6.400D-11 +// upper: 0 +// output = +// +// Iterations: 3 +// exitflag = +// +// 0 +// residual = +// +// 0. +// resnorm = +// +// 0. +// xopt = +// +// 0.9124275 + +[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d) + |