Optimization problem

1 次查看(过去 30 天)
Razvan
Razvan 2012-4-3
编辑: John Kelly 2015-2-26
Hi, I try to get the minimum of a function which is defined at discrete points (i,j - integers). The simplest example would be to get the indices i, j which minimize the sum: sum(f(i:j)) Is there an optimization function in Matlab which deals with functions defined on discrete sets?
Thanks,
Razvan

采纳的回答

Paul Kerr-Delworth
Paul Kerr-Delworth 2012-4-16
编辑:John Kelly 2015-2-26
Hi,
You could try the genetic algorithm solver, ga, in the Global Optimization Toolbox. It is possible to specify integer constraints to the ga solver.
For more information see the documentation. There is also a video example and another example available on the MathWorks website.
Hope this helps.
Best regards,
Paul
  1 个评论
Razvan
Razvan 2012-4-16
Thanks. That's exactly what I did in the end. The tutorials are very helpful anyway.
Best,
Razvan

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by