Watch this Author's files

pso('sin',1,[0,pi/2],1)

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.

Thanks

How can i execute following:

>> pso('sin',1,[0,pi/2],1)

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.

Contact us