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

NAG CL Interface Introduction
Example description

nag_opt_handle_solve_nldf (e04gnc) 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-02
      2   7.74E-01

 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-02
      2   7.95E-01