Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
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