NAG Library Manual, Mark 28.6
Interfaces:  FL   CL   CPP   AD 

NAG FL Interface Introduction
Example description

 e04gnf Example Program Results

 First solve the problem using least squares loss function
 ---------------------------------------------------------
 E04GN, Nonlinear Data-Fitting
 Status: converged, an optimal solution found
 Final objective value  4.590715E+01

 Optimal parameters X (Least Squares):
  x_idx    Value 
      1   9.44E-2
      2   7.74E-1

 Now solve the problem using SmoothL1 loss function
 ---------------------------------------------------------
 E04GN, Nonlinear Data-Fitting
 Status: converged, an optimal solution found
 Final objective value  1.294635E+01

 Optimal parameters X (SmoothL1):
  x_idx    Value 
      1   9.69E-2
      2   7.95E-1