Info
This question is closed. Reopen it to edit or answer.
What is the command in matlab simulink for change the number of generation without open window optimtool ?
1 view (last 30 days)
Show older comments
Hi all,
I am use GA in Matlab R2019b for find optimal displacement for several earthquakes, but before to begin I want to change the number of generation for find best solution of parameters or variables also in this problem i have seven variables .
How can do that ?.....
I hope to any one help me or give me a solution .
salutation .
0 Comments
Answers (1)
Devineni Aslesha
on 23 Apr 2020
Hi
The command to change the number of generations without opening optimtool window is as follows.
options = optimoptions('ga','MaxGenerations',25);
For more information, refer the following link.
1 Comment
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!