How to control to range of each variable in GA
1 次查看(过去 30 天)
显示 更早的评论
Hi, i developed a discrete event algorithm and i want to find the optimal variable that deliver that maximize the gain, I've been using the brute force research method but as the number of variables is increasing, my PC just crashes. i thought of using genetic algorithms but i don't know how to add a constraint on each variable as some are integers some are floats and i want the step of calculation to be controlled (some o variables range from for example 1 to 2 with a step of 0.1 and some are integers with a step of 1 ) thank you in advance !
Best regards
0 个评论
回答(1 个)
Alan Weiss
2017-12-1
If you have access to Global Optimization Toolbox, you can try the Mixed Integer Optimization functionality and see whether it helps. The genetic algorithm is not guaranteed to reach a global minimum, so I don't know whether this solver will satisfy you or not.
Also, remember that all MATLAB optimizers minimize rather than maximize, so set your objective function appropriately.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!