Optimization of discrete variables
이전 댓글 표시
I have a nonlinear problem with a set of 6 discrete variables which have to be optimized in order to find an optimum (max value of a target function). Each variable has up 50 acceptable values. Which optimization function you suggest to use? Is the genetic algorithm the only possible solution for discrete variable problems?
As a first approach, I would like to exclude the use multiple of "for" loops.
Thanks and regards.
댓글 수: 1
Oskar Adolfson
2017년 9월 7일
Could you maybe post your problem please? Or code which you already have?
답변 (1개)
Alan Weiss
2017년 9월 7일
0 개 추천
50^6 > 1e10, so it might not be practical to perform an exhaustive search, which I think is what you mean with the nested for loop approach. I don't know if you'll have luck with the mixed-integer genetic algorithm solver, as your problem might be too large for efficient searching. Then again, you could give it a try.
If you can vectorize your objective function evaluations, then you might try the for loop approach, evaluating a few hundred or thousands of points at once. That might make exhaustive search more practical.
Sorry, I know of nothing else.
Alan Weiss
MATLAB mathematical toolbox documentation
카테고리
도움말 센터 및 File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!