⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 particleupdate.java

📁 這是最近蒐集資料找到的Java PSO Swarm 大家可以下載回去參考使用 理面文件有原出處以及作者 請大家要記得尊重版權
💻 JAVA
字号:
package net.sourceforge.jswarm_pso;/** * Particle update strategy *  * Every Swarm.evolve() itereation the following methods are called * 		- begin(Swarm) : Once at the begining of each iteration * 		- update(Swarm,Particle) : Once for each particle * 		- end(Swarm) : Once at the end of each iteration *  * @author Pablo Cingolani <pcingola@sinectis.com> */public abstract class ParticleUpdate {		/**	 * Constructor 	 * @param particle : Sample of particles that will be updated later	 */	public ParticleUpdate(Particle particle) {	}		/** 	 * This method is called at the begining of each iteration	 * Initialize random vectors use for local and global updates (rlocal[] and rother[])	 */	public void begin(Swarm swarm) {	}		/** Update particle's velocity and position */	public abstract void update(Swarm swarm, Particle particle);		/** This method is called at the end of each iteration */	public void end(Swarm swarm) {	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -