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

tahseen alshmary
tahseen alshmary 2018년 10월 31일
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)
Alan Weiss
Alan Weiss 2018년 10월 31일
No. Please consult the particleswarm function reference page, or my previous answer.
Alan Weiss
MATLAB mathematical toolbox documentation
nanou
nanou 2020년 11월 15일
@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).
Alan Weiss
Alan Weiss 2020년 11월 15일
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
Lalit Upadhyaya
Lalit Upadhyaya 2021년 11월 19일
Please suggest some other sources for implementing linear inequality constraint with particle swarm algorithm (PSO).

댓글을 달려면 로그인하십시오.

카테고리

제품

릴리스

R2017b

태그

질문:

2018년 10월 31일

댓글:

2021년 11월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by