Borrar filtros
Borrar filtros

Optimization problem

1 visualización (últimos 30 días)
Razvan
Razvan el 3 de Abr. de 2012
Editada: John Kelly el 26 de Feb. de 2015
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

Respuesta aceptada

Paul Kerr-Delworth
Paul Kerr-Delworth el 16 de Abr. de 2012
Editada: John Kelly el 26 de Feb. de 2015
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 comentario
Razvan
Razvan el 16 de Abr. de 2012
Thanks. That's exactly what I did in the end. The tutorials are very helpful anyway.
Best,
Razvan

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by