-
运用粒子群计算函数的极值
应用背景
求最大值与求最小值两者转换时的修改处:
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
-
数字识别程序
识别0~9阿拉伯数字,输入为yuv格式图片。Demo共分为两个程序,create_number和number_identification。create_number程序随机生成一个10位数,并建立YUV文件,生成的文件存放位置为../test_data/random_number.yuv。yuv为像素域的色彩空间,也就是图片解压后的结果,是常用的数字图像处理的色彩空间。number_identification程序对random_number.yuv文件里的数字进行识别,打印输出结果。
- 2022-05-27 01:56:38下载
- 积分:1
-
MFC下实现MD5加密
MFC下实现加密算法MD5,可以对字符串跟文件进行加密.值得一看
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.
These notices must be retained in any copies of any
- 2022-03-04 02:53:21下载
- 积分:1
-
该系统是一个简单的朴素贝叶斯数据集分类系统,通过我。
本系统是一个简单的朴素贝叶斯的数据集分类系统,能够通过输入数据并预测数据集属于哪一个类-The system is a simple Naive Bayes data sets classification system through the input data and prediction data sets belong to which category
- 2022-03-22 19:37:05下载
- 积分:1
-
Biot' s consolidation plane finite element program, used to calculate the wat...
比奥固结平面有限元程序,用于计算地下水位及地面沉降-Biot" s consolidation plane finite element program, used to calculate the water table and land subsidence
- 2022-12-26 17:25:07下载
- 积分:1
-
制作一个链接列表,并对数据进行排序
一个文本文件(BurgerKing .csv),包含地址在汉堡王7000支
- 2023-06-16 00:10:04下载
- 积分:1
-
Hao C
谭浩强C语言书中的一个走迷宫的例子,此程序是其算法实现,用VC编译运行-Hao C-language book of a Maze example of this process is its algorithm, compiled with VC operation
- 2022-12-31 14:35:03下载
- 积分:1
-
cc1100send-and-receive
P1DIR |= 0x03; //P1_0, p1_1, OUTPUT
CLKCON &= ~0x40; //晶振
while(!(SLEEP & 0x40)); //等待晶振稳定
CLKCON &= ~0x47; //TICHSPD128分频,CLKSPD不分频
SLEEP |= 0x04; //关闭不用的RC振荡器
//Initkey();
Init_T1();
InitUART(9600); //初始化串口
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-23 14:42:43下载
- 积分:1
-
利用消元法中的列主元消元法来实现线性方程组的求解
利用消元法中的列主元消元法来实现线性方程组的求解-Using elimination method in the PCA included elimination method to achieve linear equations
- 2023-07-27 21:30:05下载
- 积分:1
-
用C语言实现大整数相乘问题
用C语言实现大整数相乘问题-C Language large integer multiplication problems
- 2022-05-26 22:27:39下载
- 积分:1