-
将用RGB表示的颜色值转换为长整型表示的颜色值
将用RGB表示的颜色值转换为长整型表示的颜色值-Transform color value expressed by RGB to color value expressed by long integer
- 2022-05-25 04:55:59下载
- 积分:1
-
新型GA算法
一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum 迭代的次数(代数)% psize 种群的规模大小%输出参数:% opy 最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置 newg
- 2022-03-18 14:25:18下载
- 积分:1
-
一个非常著名的数学建模(模拟)问题
一个很著名的数学建模(数学仿真)问题-小吃店服务问题的Matlab求解程序-a very famous mathematical modeling (Simulation) issue-service snack of Matlab procedures
- 2022-07-18 12:03:12下载
- 积分:1
-
蝴蝶效应图
本文利用经典的四阶龙格库塔方法计算洛伦茨方程,并画出相应的蝴蝶效应图。而且此程序具有可扩展性,可用于计算其他系统(比如达芬系统,若斯勒系统等等)以及画出相应的图形。
- 2023-05-28 15:45:03下载
- 积分:1
-
大数运算库
大数运算库-Treasury operations of large numbers
- 2022-06-13 11:16:36下载
- 积分:1
-
设停车场内只有一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆...
设停车场内只有一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等候,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后开入的车辆必须先退出车场为它让路,待该辆车开出大门外,其它车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的模拟程序。
- 2023-06-12 18:30:02下载
- 积分:1
-
用vc实现的遗传算法,有界面,易操作,从文件读取参数设置,结果输出到文件中,移植性强...
用vc实现的遗传算法,有界面,易操作,从文件读取参数设置,结果输出到文件中,移植性强-Vc implemented using genetic algorithms, there are interface, easy to operate, read from the file parameter settings, the resulting output to a file, transplantation and strong
- 2022-03-19 18:25:10下载
- 积分:1
-
MVDR 波束形成的代码
它是一个宽带MVDR matlab代码,可用于在许多应用中,如电话会议来提取语音信号
- 2022-10-28 21:55:03下载
- 积分:1
-
矩阵类Matrix
采用C++语言编写,设计了一个矩阵类,使用十分方便,能够进行各项矩阵计算,包括矩阵相加,相减,相乘,矩阵求逆,矩阵转置等。
- 2023-04-18 07:30:03下载
- 积分:1
-
It s simple implementation of Genetic Algorithm on
8
It s simple implementation of Genetic Algorithm on
8-puzzle and as result it can say either there is or not a set of movement to go from initial state to a given final state.-It s simple implementation of Genetic Algorithm on
8-puzzle and as result it can say either there is or not a set of movement to go from initial state to a given final state.
- 2022-02-21 02:51:52下载
- 积分:1