-------------------------------------------------------------
-------------------------------------------------------------
PSOt, particle swarm optimization toolbox for matlab.
May be distributed freely as long as none of the files are
modified.
Send suggestions to bkbirge@yahoo.com
Updates will be posted periodically at the Mathworks User
Contributed Files website (www.mathworks.com) under the
Optimization category.
To install:
Extract into any directory you want but make sure the matlab
path points to that directory and the subdirectories
'hiddenutils' and 'testfunctions'.
Enjoy! - Brian Birge
-------------------------------------------------------------
-------------------------------------------------------------
INFO
Quick start: just type ... out = pso_Trelea_vectorized('f6',2)
and watch it work!
This is a PSO toolbox implementing Common, Clerc 1", and
Trelea types along with an alpha version of tracking changing
environments. It can search for min, max, or 'distance' of
user developed cost function. Very easy to use and hack with
reasonably good documentation (type help for any function and
it should tell you what you need) and will take advantage of
vectorized cost functions. It uses similar syntax to Matlab's
optimization toolbox. Includes a suite of static and dynamic
test functions. It also includes a dedicated PSO based neural
network trainer for use with Mathwork's neural network toolbox.
Run 'DemoPSOBehavior' to explore the various functions, options,
and visualizations.
Run 'demoPSOnet' to see a neural net trained with PSO
(requires neural net toolbox).
This toolbox is in constant development and I welcome
suggestions. The main program 'pso_Trelea_vectorized.m' lists
various papers you can look at in the comments.
Usage ideas: to find a global min/max, to optimize training of
neural nets, error topology change tracking, teaching PSO,
investigate Emergence, tune control systems/filters, paradigm
for multi-agent interaction, etc.
-------------------------------------------------------------
-------------------------------------------------------------
Files included:
** in main directory:
0) ReadMe.txt - this file, duh
1) A Particle Swarm Optimization (PSO) Primer.pdf - powerpoint converted to pdf presentation explaining the very basics of PSO
2) DemoPSOBehavior.m - demo script, useful to see how the pso main function is called
3) goplotpso4demo.m - plotting routine called by the demo script, useful to see how custom plotting can be developed though this routine slows down the PSO a lot
4) goplotpso.m - default plotting routine used by pso algorithm
5) pso_Trelea_vectorized.m - main PSO algorithm function, implements Common, Trelea 1&2, Clerc 1", and an alpha version of tracking environmental changes.
** in 'hiddenutils'
1) forcerow, forcecol.m - utils to force a vector to be a row or column, superseded by Matlab 7 functions I believe but I think they are still called in the main algo
2) normmat.m - takes a matrix and reformats the data to fit between a new range, very flexible
3) linear_dyn, spiral_dyn.m - helpers for the dynamic test functions listed in the 'testfunctions' directory
** in 'testfunctions'
A bunch of useful functions (mostly 2D) for testing. See help for each one for specifics. Here's a list of the names:
Static test functions, minima don't change w.r.t. time/iteration:
1) Ackley
2) Alpine
3) DeJong_f2
4) DeJong_f3
5) DeJong_f4
6) Foxhole
7) Griewank
8) NDparabola
9) Rastrigin
10) Rosenbrock
11) Schaffer f6
12) Schaffer f6 modified (5 f6 functions translated from each other)
13) Tripod
Dynamic test functions, minima/environment evolves over time (NOT iteration, though easily modifed to do so):
14) f6_bubbles_dyn
15) f6_linear_dyn
16) f6_spiral_dyn
** in 'nnet' (all these require Matlab's Neural Net toolbox)
1) demoPSOnet - standalone demo to show neural net training
2) trainpso - the neural net toolbox plugin, set net.trainFcn to this
3) pso_neteval - wrapper used by trainpso to call the main PSO optimizer, this is the cost function that PSO will optimize
4) goplotpso4net - default graphing plugin for trainpso, shows net architecture, relative weight indications, error, and PSO details on run
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Matlab是一种专业的数学计算软件,也可以被看作是一种编程语言,主要用于数值计算和科学计算。它是matrix(矩阵)和language(语言)两个词的缩写,寓意该软件旨在以矩阵为基础,方便快捷地进行各种数学计算和数据处理。 Matlab提供了简单易用的命令行窗口,可以用来输入和执行Matlab代码。它还提供了交互式命令历史记录和调用文件,可以方便用户记录和查看之前执行的命令。Matlab支持多种编程语言,包括Matlab、J Matlab和MEX Matlab,可以根据不同的需求选择不同的编程语言。 Matlab提供了丰富的工具箱,包括信号处理工具箱、图像处理工具箱、优化工具箱等,可以方便地进行各种数学计算和数据处理。Matlab还提供了Simulink模块库,可以用来构建自动控制系统、数字信号处理系统等。 Matlab的语法简单易懂,可以快速地进行数学计算和数据处理。Matlab支持函数式编程,可以使用函数来简化代码,提高代码的可读性和可维护性。Matlab还支持面向对象编程,可以使用类和对象来组织代码,提高代码的可重用性和可维护性。 总之,Matlab是一种功能强大的数学计算软件
资源推荐
资源详情
资源评论
收起资源包目录
基于Matlab实现粒子群优化源码demo (117个子文件)
f_Rastrigrin_10d20p 900B
f_Rastrigrin_10d40p 900B
f_Rastrigrin_10d80p 900B
f_Rastrigrin_20d20p 900B
f_Rastrigrin_20d40p 900B
h_Rastrigrin_10d20p 802B
h_Rastrigrin_10d40p 802B
h_Rastrigrin_10d80p 802B
h_Rastrigrin_20d20p 802B
h_Rastrigrin_20d40p 802B
main.html 10KB
main.html 10KB
pso.m 25KB
pso_Trelea_vectorized.m 22KB
trainpso.m 11KB
psooptimset.m 10KB
get_psoOptions.m 10KB
goplotpso4net.m 8KB
pso.m 7KB
RunExp.m 7KB
goplotpso.m 6KB
psocheckinitialpopulation.m 5KB
goplotpso4demo.m 5KB
DemoPSOBehavior.m 5KB
psocheckbounds.m 5KB
normmat.m 4KB
psoplotswarm.m 3KB
psoboundspenalize.m 3KB
psorunhybridfcn.m 3KB
psoboundssoft.m 2KB
psodemo.m 2KB
psoiterate.m 2KB
overlaysurface.m 2KB
psoplotswarmsurf.m 2KB
demoPSOnet.m 2KB
main.m 2KB
psoboundsabsorb.m 2KB
psogenerateoutputmessage.m 2KB
main.m 2KB
show_psoOptions.m 2KB
psoplotbestf.m 2KB
f6_bubbles_dyn.m 1KB
psobinary.m 1KB
nonlinearconstrdemo.m 1KB
Foxhole.m 1KB
Griewank.m 1KB
DeJong_f4.m 1004B
templatefcn.m 962B
psocreationuniform.m 948B
tripod.m 895B
f6_spiral_dyn.m 872B
ackley.m 871B
spiral_dyn.m 841B
pso_neteval.m 836B
psogetinitialpopulation.m 805B
psocreationbinary.m 800B
rastriginsfcn.m 783B
linear_dyn.m 749B
DeJong_f2.m 732B
psocalculatepenalties.m 723B
Rosenbrock.m 723B
DrawSwarm.m 721B
initstate.m 718B
f6mod.m 700B
NDparabola.m 663B
alpine.m 639B
evolutioncomplete.m 633B
f6_linear_dyn.m 617B
overlaycontour.m 585B
langermannsfcn.m 579B
rosenbrocksfcn.m 574B
psocheckpopulationinitrange.m 559B
psoboundsreflect.m 540B
wchange.m 532B
Rosenbrock.m 531B
Rastrigin.m 521B
DeJong_f3.m 506B
testfcn1.m 483B
schwefelsfcn.m 475B
dropwavefcn.m 466B
quadrifolium.m 444B
griewangksfcn.m 438B
Griewank.m 433B
psoplotscorediversity.m 408B
Rastrigrin.m 373B
ackleysfcn.m 360B
f6.m 314B
DeJong.m 297B
unitcircle.m 288B
unitdisk.m 286B
binarytestfcn.m 258B
fun.m 207B
dejongsfcn.m 189B
heart.m 182B
forcerow.m 181B
forcecol.m 172B
fun.m 166B
void.m 38B
A Particle Swarm Optimization (PSO) Primer.pdf 724KB
installation-help.pdf 68KB
共 117 条
- 1
- 2
资源评论
静香是个程序媛
- 粉丝: 3436
- 资源: 563
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于opencv的dnn模块实现Yolo-Fastest的目标检测python源码+模型+说明(高分项目).zip
- 使用Python调用微信本地ocr服务.zip
- 【精品推荐】人工智能在医疗中的应用.pptx
- 【精品推荐】电子医疗仪器人机接口-(1).ppt
- 【精品推荐】电子医疗仪器人机接口.ppt
- ubuntu镜像ubuntu镜像01
- 基于paddle搭建神经网络实现5种水果识别分类python源码+数据集(高分毕设).zip
- 【精品推荐】电子商务网店类型介绍.ppt
- 基于paddle搭建神经网络实现水果识别分类python源码+数据集(高分项目).zip
- 三菱plc编程口通信学习笔记.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功