summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonneg/lsqnonneg_param2.sce
diff options
context:
space:
mode:
authorHarpreet2015-12-29 00:38:48 +0530
committerHarpreet2015-12-29 00:38:48 +0530
commiteb9ca1191c94059cd7adcf69805906c809fe9712 (patch)
treef98e728341812b8a0eb46aa4159b062a22225f05 /tests/general_tests/lsqnonneg/lsqnonneg_param2.sce
parent0eee95dfb1edec6ce52ec3065a3adb1bf169c9f9 (diff)
downloadFOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.tar.gz
FOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.tar.bz2
FOSSEE-Optimization-toolbox-eb9ca1191c94059cd7adcf69805906c809fe9712.zip
Bugs fixed 4
Diffstat (limited to 'tests/general_tests/lsqnonneg/lsqnonneg_param2.sce')
-rw-r--r--tests/general_tests/lsqnonneg/lsqnonneg_param2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/general_tests/lsqnonneg/lsqnonneg_param2.sce b/tests/general_tests/lsqnonneg/lsqnonneg_param2.sce
new file mode 100644
index 0000000..557a836
--- /dev/null
+++ b/tests/general_tests/lsqnonneg/lsqnonneg_param2.sce
@@ -0,0 +1,21 @@
+// Check for the size of parameters
+C = [
+ 0.0372 0.2869
+ 0.6861 0.7071
+ 0.6233 0.6245
+ 0.6344 0.6170];
+d = [
+ 0.8587
+ 0.1781
+ 0.0747
+ 0.8405];
+
+param = list("MaxIter");
+
+//Error
+//lsqlin: Size of parameters should be even
+//at line 75 of function lsqnonneg called by :
+//[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,param)
+
+[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d,param)
+