options_ps​o.InitialP​opulation : how to assign ?

hi, i now get an error when setting options.InitialPopulation = [1,2,3] for example, after having run options=pso . Can you help me again ? thank you

1 Comment

and i get the same error with other fields of the structure options. This error is : Field assignment to a non-structure array object.

Sign in to comment.

 Accepted Answer

options = optimoptions('particleswarm', 'InitialPopulation', [1,2,3]);

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!