Optimisation algorithms for a non-linear function with integer variables?
显示 更早的评论
Looking to find the minimum of a non-linear function (with 6 variables) where these variables are integers. Used the ga algorithm so far, wondering if there were any others that could be recommended, as a google search/matlab documentation search did give anything. MILP is linear, as is simulated annealing and most other MatLab algorithms. Many Thanks
1 个评论
Walter Roberson
2018-2-9
Simulated annealing is certainly not linear, but it also does not support integer constraints. ga() and gamultiobj() support integer constraints. patternsearch can be tricked into using integer values by setting the minimum step size to 1.
回答(1 个)
If the number of possible combinations of the 6 integers is not too big, you can try them all to get the minimum.
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!