Info

この質問は閉じられています。 編集または回答するには再度開いてください。

What is the command in matlab simulink for change the number of generation without open window optimtool ?

1 回表示 (過去 30 日間)
Salah Djerouni
Salah Djerouni 2020 年 3 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 .

回答 (1 件)

Devineni Aslesha
Devineni Aslesha 2020 年 4 月 23 日
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.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by