How to do particle swarm optimization for this problem?
古いコメントを表示
How can I do particle swarm optimization to get the value of e1,e2,p1,p2 that can give the highest value of f? How do make objective function and boundary constraints for PSO? I not familiar with coding and this is my first time to do PSO. Ty for your help.
% d=12
% f=z*y*2064*d
% 1.2d<=e1<48
% 1.2d<=e2<48
% 2.2d<=p1<84
% 2.4d<=p2<84
% a=e1/3d
% b=p1/3d
% k=2.8e2/d-1.7
% m=1.4p2/d-1.7
% if a<=b , y=a else y=b
% if k<=m , z=k else z=m
回答 (1 件)
Alan Weiss
2015 年 2 月 23 日
0 投票
If you have a recent version of Global Optimization Toolbox (R2014b) then you can use the particleswarm solver, which accepts bounds, as in your question. For more information, see the particle swarm documentation.
Alan Weiss
MATLAB mathematical toolbox documentation
カテゴリ
ヘルプ センター および File Exchange で Particle Swarm についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!