Info

This question is locked. Reopen it to edit or answer.

How can i define xo or intial parameters that the ga begin with ?

21 views (last 30 days)
noura
noura on 31 Oct 2024 at 7:43
Locked: John D'Errico on 31 Oct 2024 at 9:25

Answers (1)

Aquatris
Aquatris on 31 Oct 2024 at 8:09
Edited: Aquatris on 31 Oct 2024 at 8:10
You use InitialPopulationMatrix of optimoptions. You can get more info on what options you can set for ga in here under InputArguments>options.
opts = optimoptions('ga')
opts.InitialPopulationMatrix = X0;

This question is locked.

Tags

Community Treasure Hunt

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

Start Hunting!