Using particle swarm optimization

조회 수: 1 (최근 30일)
Tien Tran
Tien Tran 2016년 4월 9일
댓글: Maisa Melo 2019년 3월 20일
I use Matlab R2014a, when i type "particleswarm" on commad window it is not work. How can I use PSO on this version of Matlab?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 9일
particleswarm was added in R2014b. Your options are:
  • upgrade to any new version of MATLAB
  • get a job at MATLAB and convince them to back-fit particleswarm to R2014a
  • use one of the several PSO implementations from the File Exchange, or from elsewhere on the Internet
  • write your own PSO code
  댓글 수: 1
Maisa Melo
Maisa Melo 2019년 3월 20일
I am using R2015a Matlab version.
I am using this comand to call PSO function:
U = particleswarm(@(U0) funcaoObjetivo(QP,U0',n,),nvars,lb,ub);
But I would like to know if is possible enter with variables A and a of the inequality linear constraint in the command line function, in similar manner that I can use in genetic algoritm toolbox, as you can see below
U =ga(@(U0) funcaoObjetivo(QP,U0',n),nvarx,A,a);

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

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by