summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqlin/lsqlin_zeros.sce
blob: 2695ff1d01ea85f91f7f1e24a307f83dcab91cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Check for all zeros
C = [0];
d = [0];
A = [0];
b = [0];
// Output
//Optimal Solution Found.
// lambda  =
// 
//   lower: 0
//   upper: 0
//   eqlin: [0x0 constant]
//   ineqlin: 0.999901
// output  =
// 
//   Iterations: 2
// exitflag  =
// 
//  0  
// residual  =
// 
//    0.  
// resnorm  =
// 
//    0.  
// xopt  =
// 
//    0.     

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