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

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

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