summaryrefslogtreecommitdiff
path: root/tests/general_tests/lsqnonneg/lsqnonneg_zeros.sce
blob: e454f429a15943915e50b1b60aa272480d531391 (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
// Check for all zeros as input
C = [0];
d = [0];

//Output
//Optimal Solution Found.
// lambda  =
// 
//   lower: 6.400D-11
//   upper: 0
// output  =
// 
//   Iterations: 3
// exitflag  =
// 
//  0  
// residual  =
// 
//    0.  
// resnorm  =
// 
//    0.  
// xopt  =
// 
//    0.9124275  

[xopt,resnorm,residual,exitflag,output,lambda] = lsqnonneg(C,d)