I'm trying to figure out a way how to optimize a function in Java, however, I'm struggling to do this.
I've found the Apache Math library, but I somehow cannot come up with a implementation that suits my problem. What I want to achieve is an optimization of the parameters alpha, beta and gamma in the equation of Triple Exponential Smoothing.
Do I have to calculate the derivatives of the equation? Or is there a way where I can simply state the formula in combination with parameters?
I'd love to see a rather simple example on how to optimize a simpler equation using a Marquardt optimizer (e.g., how to optimize Single Exponential Smoothing as I could do that by myself calculating the mean squared errors).
I'd appreciate some help. Thank you!