Optimization of parameters

Let's look at how to optimize the parameters of the models.