-
遗传算法C
很好用的c
注:前两个文件存储为m文件并放在工作目录下,运行结果为
p =
0.0000 -0.0000 0.0055
大家可以直接绘出f(x)的图形来大概看看f(x)的最值是多少,也可是使用优化函数来验证。matlab命令行执行命令:
fplot("x+10*sin(5*x)+7*cos(4*x)",[0,9])
evalops是传递给适应度函数的参数,opts是二进制编码的精度,termops是选择maxGenTerm结束函数时传递个maxGenTerm的参数,即遗传代数。xoverops是传递给交叉函数的参数。mutops是传递给变异函数的参数。
- 2023-05-18 06:50:04下载
- 积分:1
-
第六章 模板与数据结构习题
6.2.1 需要编写一个对多维数组通用的算法(即各维的大小未定),怎样才能把实参多维数组的信息全部传递到函数中去?...
第六章 模板与数据结构习题
6.2.1 需要编写一个对多维数组通用的算法(即各维的大小未定),怎样才能把实参多维数组的信息全部传递到函数中去?-Chapter VI with the data structure template 6.2.1 Exercises need to write a generic algorithm for multi-dimensional array (that is, the size of the peacekeeping undetermined), how can the real multi-dimensional array parameter information passed to the function all go?
- 2022-04-08 13:36:19下载
- 积分:1
-
do with the data structure Joseph problems, which also included a similar proble...
用数据结构做的约瑟夫问题,其中还包括类似问题中的猴子选大王算法 -do with the data structure Joseph problems, which also included a similar problem is the monkey king algorithm election
- 2023-06-26 07:20:03下载
- 积分:1
-
将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出...
将马随即放在国际象棋的8×8棋盘Board[8][8]的某个方格中,马按走棋规则进行移动。要求每个方格只进入一次,走遍棋盘上全部64个方格。编制非递归程序,求出马的行走路线,并按求出的行走路线,将数字1,2,……,64依次填入一个8×8的方阵,输出之。-Ma immediately on the international chess 8 8 chessboard Board [8] [8] of a box, MA by the rules of chess go mobile. Requires each box only entered once traveled chessboard all 64 box. Preparation of non- recursive procedure, and seeking stepped routes, with a calculated routes, the figures 1, 2, ..., 64 were filled an 8 x 8 matrix, put it out.
- 2022-03-03 15:33:41下载
- 积分:1
-
建立快速傅利叶变换 C 语言源代码 17K
建立快速傅利叶变换 C 语言源代码 17K-establish Fast Fourier Transform C language source code 24K
- 2022-04-20 19:23:52下载
- 积分:1
-
matrix inversion c procedures for the large
矩阵求逆的c++程序,用来算大规模带分数形式的逆矩阵的,文件输入-matrix inversion c procedures for the large-scale Daibanshu form of the inverse matrix, the file input
- 2022-01-25 19:53:29下载
- 积分:1
-
Data structure of the famous Tower of Hanoi problem to achieve, based on C++ imp...
数据结构中著名的汉诺塔问题的实现,基于C++实现-Data structure of the famous Tower of Hanoi problem to achieve, based on C++ implementation
- 2022-02-01 19:58:27下载
- 积分:1
-
data structure depicted in C language
数据结构C++语言描术―清华大学出版的-data structure depicted in C language-publication of Tsinghua University
- 2023-05-04 20:10:03下载
- 积分:1
-
公交换车
使用数据解构编写的公交换乘系统!可以按路线查询!使用数据解构编写的公交换乘系统!可以按路线查询!
- 2023-08-01 18:35:03下载
- 积分:1
-
数据结构源码1000例
数据结构源码1000例非常详细;
数据结构源码1000例;
数据结构源码1000例
- 2022-03-20 18:17:28下载
- 积分:1