필터 지우기
필터 지우기

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에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by