Hi,
I am trying to run the hybrid GA-PSO code on matlab for optimizing my objective function but I am getting this error
Array dimensions must match for binary array op.
Error in gapso (line 169)
particle(i).Velocity = w*particle(i).Velocity + c1*rand(VarSize).*(particle(i).Best.Position-particle(i).Position) +
c2*rand(VarSize).*(GlobalBest.Position-particle(i).Position);
Please help me how to resolve this.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

질문:

2022년 2월 25일

편집:

2022년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by