基于神经网络技术 function main % This is a FNN trained by PSO and BP. After trained by PSO, the NN is trained by BP clc; clear all; MaxRunningTime=10; MaxHiddenLayerNode=10; %根据目标函数获得样本输入输出 rand('state',sum(100*clock));
1. 粒子群优化的工具箱, PSOt. PSOt, particle swarm optimization toolbox for matlab. 2. Demo, 使用PSO训练神经网络. Run 'demoPSOnet' to see a neural net trained with PSO (requires neural net toolbox).