# ParticleSwarmOptimization
###Introduction
Particle Swarm Optimization (PSO) is a nature inspired heuristic optimization method. In PSO, there are particles, each of them is a solution candidate, search the solution space to find the optimal point of the given function. Each particle has a position and a velocity vector, and searches better position by updating the velocity vector. The velocity updating rule is inspired by bird flocking behaviour and benefits from both particle own best position and the position of the global best particle.
This project contains an implementation of Particle Swarm Optimization in Julia. The repo provides serial and parallel implementation with MPI. The project also provides an interface for training neural networks using PSO with the help of Knet.
###Installation
In Julia repl,
First, install Knet:
Pkg.clone("https://github.com/denizyuret/Knet.jl.git")
Then,
Pkg.clone("https://github.com/ozanarkancan/ParticleSwarmOptimization.jl.git")
Knet has gpu support, and if you want to run your code on a gpu you should build both packages:
Pkg.build("Knet")
Pkg.build("ParticleSwarmOptimization")
###Usage
没有合适的资源?快使用搜索试试~ 我知道了~
Julia 中的 粒子群优化_Julia_代码_下载
共23个文件
jl:15个
yml:2个
md:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 177 浏览量
2022-06-20
18:40:05
上传
评论
收藏 15KB ZIP 举报
温馨提示
粒子群优化(PSO)是一种自然启发的启发式优化方法。在 PSO 中,存在粒子,每个粒子都是一个候选解,搜索解空间以找到给定函数的最优点。每个粒子都有一个位置和一个速度矢量,通过更新速度矢量来寻找更好的位置。速度更新规则的灵感来自于鸟群的行为,并受益于粒子自身的最佳位置和全局最佳粒子的位置。 该项目包含 Julia 中粒子群优化的实现。该 repo 使用 MPI 提供串行和并行实现。该项目还提供了一个接口,用于在 Knet 的帮助下使用 PSO 训练神经网络。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
ParticleSwarmOptimization.jl-master.zip (23个子文件)
ParticleSwarmOptimization.jl-master
.gitignore 38B
deps
build.jl 165B
README.md 1KB
appveyor.yml 1KB
test
runtests.jl 90B
examples
mnist.jl 971B
Functions.jl 164B
serial_pso.jl 532B
serial_mnist_pso.jl 1KB
Args.jl 2KB
xor_pso.jl 1KB
parallel_pso.jl 767B
mnist_pso.jl 2KB
hosaki.jl 545B
src
psoupdate.cu 3KB
ParticleSwarmOptimization.jl 320B
pso.jl 2KB
Problem.jl 638B
Particle.jl 8KB
Makefile 207B
LICENSE.md 1KB
REQUIRE 42B
.travis.yml 430B
共 23 条
- 1
资源评论
- attack12882024-04-28实在是宝藏资源、宝藏分享者!感谢大佬~
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功