Optimization - Evaluation of cost function requires the cost functions value at the last iteration
Afficher commentaires plus anciens
Hi everybody,
I have an (unconstrained) optimization problem. In order to evaluate the function I am trying to minimize at iteration n (it maps from the complex plane to the real numbers), I need to know the location the optimization algorithm evaluated the function at iteration n-1. For example: I choose the starting point [0 0], the algorithm determines [1 1] as the next point. Then I need the point [0 0] as an input to the cost function to evaluate it at [1 1].
The examples provided in the MATLAB help seem only to deal with cases, where the cost functions value does not depend on any prior points. It thought about declaring a global variable for the points in the complex plane, but is this a good way to proceed? Are there other possibilities?
It would be very much appreciated, if anybody could give me a hint.
Thanks
Réponses (1)
Guy Rouleau
le 17 Sep 2012
0 votes
As far as I know, the cost function of any optimization problem should not depend on previous iterations.
Catégories
En savoir plus sur Simulink Design Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!