How to get initial and successive populations in GA optimization ?

3 ビュー (過去 30 日間)
sonika sharma
sonika sharma 2022 年 2 月 21 日
回答済み: Shreeya 2024 年 1 月 15 日
I want to use GA in integartion with external simulation software. How can I access the initial population created by GA as well as suceesive populations so that these can be send to the external simulation software to evaluate objective function?

採用された回答

Shreeya
Shreeya 2024 年 1 月 15 日
The “InitialPopulationMatrix” parameter of the “optimoptions’ can be used to create an initial population.
options = optimoptions('ga', InitialPopulationMatrix, []);
You can refer to the population options of this function in this link:
Further, to access the population being generated in each iteration, refer the page linked below:
The custom output function plots the population values being generated with each iteration and saves it to the base workspace which can be used in external simulation software.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by