can I include the GA fitness function in a for loop to do more than one optimization case successively ? thanks

3 views (last 30 days)
Hello, I am using GA optimization with few hundreds of variables, half of them are integers, I have also nonlinear inequality constraints, I've developed my code in one .m file containing the output function and including both the constraint and fitness functions as nested functions inside it, now, I wanna run many cases with changing some of the main problem controlling variables ... can I make this using for loop, instead of running one case, saving its results, changing the variables and running again ? I tried to initiate for loop in the output function to contain the nested functions (constraint and fitness functions) but it doesn't work, I appreciate any kind of help/assistance/suggestion, thanks in advance, Regards,

Answers (0)

Community Treasure Hunt

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

Start Hunting!