summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_param2.sce
blob: f7807598ab8aa2ab77db5a4181e88226c8ddab61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Check for the param to be even in number
C = [2 0;
	-1 1;
	 0 2]
d = [1
	 0
    -1];
A = [10 -2;
	 -2 10];
b = [4
    -4];
param = list("MaxIter");

//Error
//lsqlin: Size of parameters should be even
//at line     153 of function lsqlin called by :  
//[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b,[],[],[],[],[],param)

[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b,[],[],[],[],[],param)