The script should define a class Polynomial as follows. The polynomial is a quartic and thus has four parameters. These are the values to be optimized.
The different way of defining the params is so that you can gain agility with the OptimizationUtils. These four params are the parameters of a quartic polynomial (see https://mycurvefit.com/)
The objective function must compute the values given by the function in 30 equally spaced values between -pi/2 and pi/2.
The function must return a list of residuals (errors).
Create a visualization function that plots a cosine function
Hi @afonsocastro ,
The goal is to create a script which optimizes the four parameters of a polynomial function so that it fits a cosine within the -pi/2 and pi/2 range.
You must create a new test script here https://github.com/miguelriemoliveira/OptimizationUtils/tree/master/test
The script should define a class Polynomial as follows. The polynomial is a quartic and thus has four parameters. These are the values to be optimized.
The different way of defining the params is so that you can gain agility with the OptimizationUtils. These four params are the parameters of a quartic polynomial (see https://mycurvefit.com/)
The objective function must compute the values given by the function in 30 equally spaced values between -pi/2 and pi/2.
The function must return a list of residuals (errors).
Create a visualization function that plots a cosine function
Can you show me this by Thursday? Good luck.