MATLAB Answers

can we use particleswarm for matrices?

1 view (last 30 days)
i have a MIMO system (3*2 system, 2 inputs and 3 outputs), i am trying to tune the parameters of PI controllers, which i am designing for that MIMO system so, my objective function is not a polynomial function but it is a matrix (which is a function of those two tuning parameters)
what is the way to apply particleswarm to this

Accepted Answer

Walter Roberson
Walter Roberson on 2 Aug 2021
No. Each array element output would be an "objective", but particleswarm() is strictly single objective.
You would have to return some "measure of goodness" instead.
The optimizer would tell you what parameter pair is optimal, which you could then use to calculate the matrix.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!