Watch this Author's files
Swarming...Subscripted assignment dimension mismatch.
Error in psoboundspenalize (line 32)
state.ConstrViolations(i,:) = [c,ceq] ;
Error in pso (line 407)
state = boundcheckfcn(state,Aineq,bineq,Aeq,beq,LB,UB,nonlcon,...
Please look into above problem.
How can i execute following:
Please rectify above error.
Please suggest any general algorithm in which i can suitably change the objective function and constraints , though i have tried few commands like
>> pso('Sin',1,[0,pi/2], 0)
but there is always coming some error in its directory.