-
matlab编译标准粒子群优化算法
代码可直接运行,注释详细。粒子群算法是将群体中的个体看作是在D维搜索空间中没有质量和体积的粒子,每个粒子以一定的速度在解空间运动,并向自身历史最佳位置和领域历史最佳位置聚集,实现对候选解得进化。让粒子飞向解空间并在最好解处降落。通过迭代找到最优解,在每一次迭代中,粒子通过跟踪两个极值来更新自己。第一个是粒子本身的历史最优值persongood,另一个是每个组织目前找到的最优解allbetter。
- 2022-07-16 08:55:30下载
- 积分:1
-
用C语言来实现的。求解线性方程组的迭代,是一种简单的迭代法,可不如 Gauss...
用C语言来实现的。求解线性方程组的迭代,是一种简单的迭代法,可不如 Gauss-Seidel迭代法收敛速度快。-Use c language to make a Jacobi iterative arithmetic which could solve the linear equation group, but it s may be more slower than the Gauss-Seidel iterative arithmetic.
- 2022-10-31 15:55:02下载
- 积分:1
-
实现一个超过了计算机所表示范围的长整数的加减法
实现一个超过了计算机所表示范围的长整数的加减法-achieve an over by the computer, said the scope of the long integer addition and subtraction
- 2023-04-11 17:05:03下载
- 积分:1
-
matlab编写的流体计算和传热程序
matlab编写的流体计算和传热程序-Matlab calculations prepared by the fluid and heat transfer procedures
- 2022-08-16 06:17:58下载
- 积分:1
-
基于龙贝格计算定积分的方法来计算无穷积分
基于龙贝格计算定积分的方法来计算无穷积分-Romberg-based method of calculating the definite integral to calculate the infinite integrals
- 2023-07-24 10:35:04下载
- 积分:1
-
Matlab procedures used in the calculation of time
matlab程序,用于计算时间序列中的自适应问题可以进行预测-Matlab procedures used in the calculation of time-series of adaptive problems can be predicted
- 2022-04-07 02:13:35下载
- 积分:1
-
主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。...
主要是应用VC进行傅立叶变换和反变换的程序,主要采用快速傅立叶方法,因为傅立叶变换的时间很长。-VC primarily used for Fourier transform and inverse transform process, the main use of fast Fourier methods, because the Fourier transform of the time very long.
- 2023-05-09 05:30:03下载
- 积分:1
-
一个VB小程序,能够进行大数的计算,可以作为学习的参考
一个VB小程序,能够进行大数的计算,可以作为学习的参考-a small procedure to carry out large numbers of calculation can be used as reference for the study
- 2022-04-17 18:45:44下载
- 积分:1
-
2维数组 截断 追加 测试
应用背景
二维数组的截断和追加并不像TStringList那么简单。在研究二维数组的截断和追加时,写了本例子来研究。提供给有相同问题的后来人参考,代码有点青涩,毕竟是研究算法的的demo,不喜勿喷!
关键技术
二维数组的截断和追加是一个抽象的概念,本demo把它实例化,可以给爱偷懒的程序学习者参考,不足之处欢迎拍砖。{删除动态数组指定元素的过程: 参数 arr 是数组名, 参数 Index 是要删除的索引}
procedure TForm1.DeleteArrItem(Index:Integer);
var
j:integer;
begin
if Length(MyProArr)>1 then
begin
for j := Index to Length(MyProArr)-2 do begin
MyProArr[j,0]:=MyProArr[j+1,0];
MyProArr[j,1]:=MyProArr[j+1,1];
end;
setlength(MyProArr,Length(MyProArr)-1,2);
end else
begin
setlength(MyProArr,0,2);
end;
- 2022-11-15 14:10:02下载
- 积分:1
-
刚才弄错了,这才是第二个源码,可以实现输入一二叉树的前序与中序,输出其后序...
刚才弄错了,这才是第二个源码,可以实现输入一二叉树的前序与中序,输出其后序-have just made a mistake, this is the second source, can achieve an input sequence of binary tree with the sequence, then the output sequence
- 2022-03-04 21:26:50下载
- 积分:1