How to control to range of each variable in GA
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Alan Weiss
on 1 Dec 2017
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 Comments
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!