How can I solve a 3 variable problem with the TLBO (teaching learning based optimization) algorithm?

Hello, I´m new with all this of the algorithms and how it works, so I can´t make to solve a problem of multilevel inverter with TLBO, can someone teach me an example of three unknown variables. In the moment I have a problem in this line:
[THD,ansr]=min(fx);
BestFx{(iter)}=THD;
BestX(iter,:)=pos(ansr,:);
and the error is this:
Unable to perform assignment because the indices on the left side are not
compatible with the size of the right side.
Error in TLBOB1 (line 82)
BestX(iter,:)=pos(optind,:);
Thank you so much.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息

产品

版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by