summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_input2.sce
blob: dbfe1874d4e52532fa18c9ed51f5864a476e7ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Check for the input arguments
C = [2 0;
	-1 1;
	 0 2]
d = [1
	 0
    -1];
A = [10 -2;
	 -2 10];
b = [4
    -4];

//Error
//lsqlin: Unexpected number of input arguments : 14 provided while should be in the set of [4 6 8 9 10]
//at line      99 of function lsqlin called by :  
//[xopt,resnorm,residual,exitflag,output,lambda] = lsqlin(C,d,A,b,[],[],[],[],[],[],[],[],[],[])

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