Fitting a function with five parameters

This example uses the CURV5P diagram. This diagram 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.

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.

Diagram Location: Examples > Optimize

Diagram Name: CURV5P