particle swarm algorithm (PSO)

How can i use linear inequality constraint with particle swarm algorithm (PSO)

回答(1 个)

Alan Weiss
Alan Weiss 2018-10-31

0 个投票

Sorry, particleswarm does not accept any constraints except for bounds. I suggest that you use patternsearch instead, which accepts all types of constraints, and is usually more efficient than particleswarm anyway. If you need to look for a global optimum, try the suggestion here for multiple starting points.
Alan Weiss
MATLAB mathematical toolbox documentation

5 个评论

Dear sir can i use this command with pso [x,fval,exitflag,output,population,scores] = particleswarm(ObjectiveFunction,nvars,A,b,Aeq,beq,LB,UB,nonlcon,IntCon,options)
No. Please consult the particleswarm function reference page, or my previous answer.
Alan Weiss
MATLAB mathematical toolbox documentation
@Alan Weiss I saw in paper intitiled (A Fast and Unified Method to Find a Minimum-Jerk Robot Joint Trajectory Using Particle Swarm-Lin2013) that PSO accept nonlinear constraint (nonlcon).
Maybe some PSO implementations accept nonlinear constraints, but the MATLAB Global Optimization Toolbox version does not. You can find the latest function reference page here.
Alan Weiss
MATLAB mathematical toolbox documentation
Please suggest some other sources for implementing linear inequality constraint with particle swarm algorithm (PSO).

请先登录,再进行评论。

类别

产品

版本

R2017b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by