Fitting a function with five parameters — CURV5P.VSM

CURV5P.VSM is a continuation of the CURV2P.VSM.

CURV5P.VSM approximates the function Sin (πt) on the interval 0 to 1. Five line segments are used in this diagram to get a better fit than what was gotten in CURV2P.VSM with only two parameters.

This gives a problem with five variables. As before, the objective function is the integral of the squared error between the two curves. Starting with all five parameterUnknowns set to 1, the starting value of the objective function is 0.14. Embed converges after 109 simulation runs with the minimized value of the objective function at 0.00027.