登录
首页 » Matlab » 人工鱼群算法

人工鱼群算法

于 2022-03-02 发布 文件大小:6.92 kB
0 82
下载积分: 2 下载次数: 1

代码说明:

format longVisual=2.5;Step=0.3;delta=0.618;N=50;Try_number=100;a1=-10;%控制左区间1b1=10;%控制右区间1a2=-10;%控制左区间2b2=10;%控制右区间2d=[];U=[];h=1e-1;Friend_number=50;k=1;m=51;X1=rand(N,1)*(b1-a1)+a1;X2=rand(N,1)*(b2-a2)+a2;X=[X1 X2];%人工鱼状态for i=1:Nwwww=[X(i,1),X(i,2)];d(i)=maxf(wwww); %将d的值依次列出来end[w,i]=max(d); %w为d的最大值,i为最大值对应的下标即第几条鱼maxX=[X(i,1),X(i,2)];%初始公告板记录 ,将最大值对应的X赋给maxXmaxY=w;%初始公告板记录

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

发表评论

0 个回复

  • aircraft_simulation
    this code is for the aircraft dynamic model simulation and evaluates the sensitivity of eigenvalue and eigenvector and sigular value of the model.
    2010-04-06 11:17:54下载
    积分:1
  • Capacitive-equipment
    电容型设备绝缘在线监测与故障诊断的研究 电力系统在线监测技术(Capacitive type equipment insulation online monitoring and fault diagnosis research)
    2014-02-13 17:12:16下载
    积分:1
  • 16
    说明:  Modelling the Relationship between the Microarray Data of the NCI-60 Anticancer Dataset with Therapeutic Responses by Genetic Programming
    2011-07-03 06:59:37下载
    积分:1
  • ssc_lithium_cell_1RC
    说明:  Lithium Battery Cell - One RC-Branch Equivalent Circuit
    2019-05-05 19:06:46下载
    积分:1
  • fang-ku06
    多目标跟踪的粒子滤波器,各种kalman滤波器的设计,采用加权网络中节点强度和权重都是幂率分布的模型。( Multi-target tracking particle filter, Various kalman filter design, Using weighted model nodes in the network strength and weight are power law distribution.)
    2017-04-04 18:32:25下载
    积分:1
  • matlab-chengxusheji-yuandaima
    科学运算语言 MATLAB 的程序设计有关的函数代码(MATLAB scientific computing programming language-related function code)
    2008-05-02 08:57:45下载
    积分:1
  • 主要自己写的,基于SV
    主要自己写的,基于SV-C多径信道,设计传输速率100Mbps,借用了几个别人的函数。
    2023-02-20 19:40:03下载
    积分:1
  • radar
    说明:  绘制雷达扫描图,同时能根据从串口传来的参数动态地以黑点显示雷达扫描到的物体,同时能显示摄像头捕捉到的图像(Mapping radar scan at the same time according to the parameters coming from the serial port to dynamically scan radar black spots show the objects, while showing the camera captured images)
    2010-04-27 21:53:26下载
    积分:1
  • demo
    MATLAB的一些常用程序,都很简答,但很实用,适合初学者(MATLAB for some commonly used procedures are short answer, but very useful for beginners)
    2010-05-11 20:53:07下载
    积分:1
  • svpwm_fuzzy
    This is simulink model of fuzzy logic control of svpwm based induction motor control
    2013-09-16 17:10:34下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载