登录
首页 » 算法 » 使用遗传算法的函数优化问题

使用遗传算法的函数优化问题

于 2022-02-28 发布 文件大小:4.54 kB
0 215
下载积分: 2 下载次数: 1

代码说明:

这是简单的遗传算法代码,求解函数优化问题。这里是函数的遗传算法每一步。 使用了选择,交叉,突变,roullette 轮选择,一点交叉,位翻转突变。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Towers of Hanoi
    实现汉诺塔的搬移问题,实现了最著名的汉诺塔的搬移问题。-Towers of Hanoi
    2022-03-18 14:41:07下载
    积分:1
  • 简单的讲,所谓拟合是指已知某函数的若干离散函数值{f1,f2,…,fn},通过调整该函数中若干待定系数f(λ1, λ2,…,λ3), 使得该函数与已知点集的差别...
    简单的讲,所谓拟合是指已知某函数的若干离散函数值{f1,f2,…,fn},通过调整该函数中若干待定系数f(λ1, λ2,…,λ3), 使得该函数与已知点集的差别(最小二乘意义)最小。如果待定函数是线性,就叫线性拟合或者线性回归(主要在统计中),否则叫作非线性拟合或者非线性回归。表达式也可以是分段函数,这种情况下叫作样条拟合。-Simply speaking, the so-called fitting refers to a function known to a number of discrete function values (f1, f2, ..., fn), by adjusting the number of undetermined coefficient function f (λ1, λ2, ..., λ3), makes the function and known points of difference (least squares significance) the smallest. To be determined if the function is linear, is called linear regression or linear regression (mainly in the statistics), otherwise known as non-linear fitting, or nonlinear regression. Expressions can also be a sub-function, this case is called spline fitting.
    2022-02-03 20:04:37下载
    积分:1
  • 高精度计C++类的
    高精度计算C++类的算法-precision calculation algorithm C
    2022-03-19 03:09:55下载
    积分:1
  • 分数计
    这是只是一个简单的计算器,它允许某人 +,-,*,/ 分数。以为类实验室,它实际上可能是有用的人。
    2022-07-11 18:20:44下载
    积分:1
  • Dijkstra
    资源描述 给定一张带权有向图和图中任意两个顶点,用Dijkstra算法求出这两个顶点之间的一条最短路径。
    2022-03-06 09:58:55下载
    积分:1
  • 没有界面,用C写的小程序 问题如下:一家软件公司招聘了数十位程序员,分成若干部门。 进行一次考试,对各个部门的所有程序员进行考核。考试结束后评出了每个人的分数。...
    没有界面,用C写的小程序 问题如下:一家软件公司招聘了数十位程序员,分成若干部门。 进行一次考试,对各个部门的所有程序员进行考核。考试结束后评出了每个人的分数。现在需要知道,在每个部门内,成绩最好的程序员和成绩最差的程序员分别是谁。输入有N+1行,每一个有若干正整数。第一行只有一个正整数,代表公司的部门数目。剩余的N行,每一行代表了该部门所有程序员的得分。其中每行第一个数字k代表了该部门的程序员个数,该行剩下的有k对数据,每对数据包括一个程序员的姓名(一个字符串)和其得分(一个正整数)。【输出形式】输出有N行,每行有两个串。第一个串该部门得分最高的程序员的姓名,第二个数字是得分最低的程序员的姓名。-no interface, written in C minor procedural issues are as follows : a software company recruited dozens of programmers, divided into several departments. An examination of the various departments for testing all programmers. Examinations in 1886 after the end of each grade. Now need to know, in every sector, but the best programmers and the worst programmers who were. N input is a line, each one a number of positive integers. There is only a first positive integer representing the number of departments. The remaining N firms, each firm on behalf of all the sector"s programmers to the basket. Each Bank figures k a representative of the number of programmers, the bank left the k right d
    2022-03-10 11:37:16下载
    积分:1
  • 使用络文库的有限域运的示例
    Gf2 系列类代表域译码。计算上讲,它不是特别有用的类。它的主要用途是使各种有限域类的接口尽可能均匀。Gf2 系列的头文件还声明类 ref_GF2,其中用来表示非 const 引用到 gf2 系列,如那些从索引 vec_GF2,其中"包"gf2 系列的获得成单词。有从 ref_GF2 到 const gf2 系列隐式转换从 gf2 系列及到 ref_GF2。因此,如果你想要宣布带 GF2 非 const 引用的函数,你应声明的参数的类型 ref_GF2: 这将允许您传递 gf2 系列类型的变量以及 vec_GF2 元素的获得通过索引。
    2022-09-01 07:50:03下载
    积分:1
  • RFID indoor location identification for construction projects
    资源描述This paper presents a lowcost indoor location identification and material tracking methodology for construction projects using Ultra High Frequency (UHF) passive Radio Frequency Identification (RFID) technology. Onsite location aware information is an emerging area that focuses on automating delivery of spatial information pertinent to location of materials, workforce, and equipment. This spatial information can be used to derive knowledge about construction project status. A two-step algorithm is presented to automate the process of location estimation and material tracking in near-real-time. In this methodology, a number of passive RFID tags are distributed onsite where work is progressing, and a mobile RFID reader is carried by a worker onsite. Each passive RFID tag is deployed as a reference point with a known location (landmark) within a predefined zone. Reference tags of known locations are used to d
    2022-03-02 08:24:10下载
    积分:1
  • 快速排序、归并排序与选择排序平均时间之比较
    /*----------------------选择排序-----------------------------*/ void SelectSort(int data[],int low,int high) { for(int i=low;i
    2022-03-18 12:13:58下载
    积分:1
  • 最小不重复数问题
    问题描述:给定一个数n,找出大于这个数的最小不重复数(任意相邻位数字不相同)。 程序给出了两种方法:find和find1,其中find1属于暴力法,直接从n+1开始寻找,每次加1,知道找到满足条件的不重复数为止。 第二种方法比较巧妙,将n各位数字存到一个数组a[]里,下标大小对应位数高低,比如1234,数组a[0...3]依次为1,2,3,4;从最高位开始找相邻的重复数,较低的重复位加1带进位,高位循环加进位直到无进位,低位置零;回到次高位重新寻找重复位,直到无重复位。
    2022-05-13 23:24:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载