summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_b1.sce
blob: fb01b791958502742c4c77e44f26b94d7469ac24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Check for elements in b
C = [2 0;
	 -1 1;
	  0 2]
d = [1
 	 0
    -1];
A = [10 -2;
	  -2 10];
b = [-%inf -%inf];

//Error
//lsqlin: Value of b can not be negative infinity
//at line     286 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)