Optimization that does not repeat same evaluation
2 次查看(过去 30 天)
显示 更早的评论
Hey, I got a nonlinear optimization problem using real-time data online. I know
(a) the solution have a constraint that it will be integer only. I know ga have that option.
(b) I know I can use ga for this kind of problem. But I hate ga as I found that it keep repeating function evaluations using same value of optimization variable, everytime it repeats the function evaluation it changes within a limit due to noise as the data are real-time. I want optimization solver keep remember the result from past evaluation instead of repeating the evaluation again.
Is there any optimization method MATLAB has that have option to handle both situation? Please tell what option should I use for any methods. Thanks in advance.
0 个评论
回答(2 个)
Walter Roberson
2019-4-25
You could continue to use ga(), but memoize() the function so that if it were to be called with the same parameters again then it would give back the same results.
However, MATLAB does not offer any optimizers for the case where re-evaluating with the same parameters might give a different result.
Changing as you re-evaluate implies that you are loading data each iteration. You should not do that: you should load the data ahead of time and then optimize.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulated Annealing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!