-
运用粒子群计算函数的极值
应用背景
求最大值与求最小值两者转换时的修改处:
BaseStepPso:代码83行和91行
InitSwarm: 代码44行
PsoProcess: 代码
69行
关键技术
调用格式:
Scope=[ ];
[xm,on,off,fv]=PsoProcess(N,D,Scope,@InitSwarm,@BaseStepPso,@fitness,IsStep,0,M,IsPlot);
Xm:目标函数取最大值时的自变量
Fv:目标函数的最大值
on:在线性能的数据
off:离线性能的数据
N:粒子数目(一般取20-40。对于大部分的问题10个粒子已经足够可以取得好的结果,
不过对于比较难的问题或者特定类别的问
- 2022-12-27 12:25:05下载
- 积分:1
-
hdoj的题目分类!!质量保证!
想刷hdoj的人必看!里面有每道题的类型!以下是部分:
1001 整数求和 水题
1002 C语言实验题——两个数比较 水题
1003 1、2、3、4、5... 简单题
1004 渊子赛马 排序+贪心的方法归并
1005 Hero In Maze 广度搜索
1006 Redraiment猜想 数论:容斥定理
1007 童年生活二三事 递推题
1008 University 简单hash
......
- 2023-08-27 14:20:03下载
- 积分:1
-
PHP QR Code QR编码库
概述
PHP QR 码是用于生成 QR 码,二维条形码的开放源码 (LGPL) 库。基于 libqrencode C 库,提供 API 创建条码图像 (PNG、 JPEG 多亏了 GD2) 的 QR 码。实施纯粹在 PHP 中,没有外部的依赖关系 (除了 GD2 如果需要的话)。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-04-26 16:04:21下载
- 积分:1
-
北大ACM题目例程
详细的解答过程 程序实现 算法分析
北大ACM题目例程
详细的解答过程 程序实现 算法分析-ACM North Title routine procedures detailed answers to the process of realization of Algorithm Analysis
- 2022-11-13 17:25:04下载
- 积分:1
-
Displays a rotatable and scaleable wire frame of any
3D mathematical function....
Displays a rotatable and scaleable wire frame of any
3D mathematical function. This can be made up from the
normal VB maths plus inverse and hyperbolic functions.
Functions can be created and saved as wanted. Image vertices
can also be saved for use elsewhere.
The MS ScriptControl Eval function simplifies calculations
enormously and its use is demonstrated. Also shown are
MoveToEx, LineTo which are much faster than the VB
equivalents and very easy to use. Included are a set of string
handling subroutines such as count characters, squeeze out
spaces, replace sub-strings etc. Commented throughout
including the 3D maths and perspective methods. All the
files are visible and the program is written for an 800x600
screen.
- 2022-02-02 12:09:47下载
- 积分:1
-
ints: You would earn poin
XPObject对象
- 2022-07-14 12:16:46下载
- 积分:1
-
粒子群优化算法是一种新的技术,在实践中得到了很好的表现。粒子群优化算法是一种基于种群的搜索算法,模拟了种群内鸟类的社会行为。
使用系统;
- 2022-06-18 22:52:20下载
- 积分:1
-
用递归Costas环的恢复期。BPSK符号解调
Recovery phase with recursive Costas loop. Bpsk symbols to demodulate
- 2022-03-19 21:14:19下载
- 积分:1
-
cSharp fiveChesscode
具有一种算法的五子棋游戏,游戏界面还不错,请大家多多关照,我以学习CSharp为主,独立编程的能力还有待提高
- 2022-10-05 07:35:04下载
- 积分:1
-
对数回归方程logarithmregress.cs方程模型y = * LN…
对数回归方程 LogarithmRegress.cs
方程模型为 Y=a*LnX+b
public override double[] buildFormula()
得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。
public override double forecast(double x)
预测函数,根据模型得到预测结果。
public override double computeR2()
计算相关系数(决定系数),系数越接近1,数据越满足该模型。
-Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
- 2022-08-31 23:15:03下载
- 积分:1