How to control to range of each variable in GA

1 回表示 (過去 30 日間)
Mohamed othman Latrous
Mohamed othman Latrous 2017 年 12 月 1 日
回答済み: Alan Weiss 2017 年 12 月 1 日
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

回答 (1 件)

Alan Weiss
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

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by