登录
首页 » c++ » 基于生长法的路线最优化

基于生长法的路线最优化

于 2022-03-12 发布 文件大小:11.52 kB
0 155
下载积分: 2 下载次数: 1

代码说明:

for   j=1:10000      R=rand(10000,1);      a(j)=R(j); g1=((A(1,1)-x(1,1))^2+(A(1,2)-x(1,2))^2)^0.5+((A(1,1)-x(2,1))^2+(A(1,2)-x(2,2))^2)^0.5+((A(1,1)-A(2,1))^ 2+(A(1,2)-A(2,2))^2)^0.5;      g2=((A(2,1)-A(3,1))^2+(A(2,2)-A(3,2))^2)^0.5+((A(2,1)-A(1,1))^2+(A(2,2)-A(1,2))^2)^0.5; g3=((A(3,1)-x(4,1))^2+(A(3,2)-x(4,2))^2)^0.5+((A(3,1)-x(3,1))^2+(A(3,2)-x(3,2))^2)^0.5+((A(3,1)-A(2,1))^ 2+(A(3,2)-A(2,2))^2)^0.5; g4=((A(4,1)-x(4,1))^2+(A(4,2)-x(4,2))^2)^0.5+((A(4,1)-A(6,1))^2+(A(4,2)-A(6,2))^2)^0.5+((A(4,1)-A(5,1))

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

发表评论

0 个回复

  • modem860
    用于cml860芯片收发DTMF和FSK信号(Cml860 for DTMF and FSK transceiver chip signal)
    2007-07-16 15:16:04下载
    积分:1
  • SL811-HOST
    51读写U盘全套技术资料,原理图,KEIL C51原代码(U disk 51 to read and write a full set of technical information, schematics, KEIL C51 original code)
    2020-10-29 12:19:56下载
    积分:1
  • zlib123
    说明:  zlib库用于提供解压PNG图片的算法 包括CRC32和deflate算法(Zlib library is used to provide algorithms for decompressing PNG pictures)
    2020-03-30 19:11:46下载
    积分:1
  • 基于STM32单智能手环心率计步器体温显示设计
    说明:  能够实时显示心率与温度 可以二次开发 使用STMF103板子(It can display heart rate and temperature in real time, and can be developed and used in stmf103 board)
    2020-10-20 13:27:26下载
    积分:1
  • SerialPort_vc
    一个关于串口通信编程的小程序,使用visual c++编写。(Serial communication programming on small procedures, the use of visual c++ Prepared.)
    2007-07-16 15:57:05下载
    积分:1
  • 这里是我用这种方法加密算法
    自互联网崛起的最
    2023-05-05 05:35:03下载
    积分:1
  • NXP的A10899的无感FOC滑膜算法,纯开源的
    给大家分享下,给还在无感FOC困惑的人
    2022-03-15 04:39:12下载
    积分:1
  • ALIENTEK-MINISTM32-ucGUI
    在STM32中实现UCGUI的移植,在STM32中显示UCGUI界面,功能十分强大,移植在MINI板上。(The transplant UCGUI achieve STM32, the display UCGUI interface is very powerful, transplant MINI board in the STM32.)
    2014-05-12 18:37:18下载
    积分:1
  • ADC0832
    adc0832.h 模块程序,自写模块,容易调用.(adc0832.h module program, since the write module, easy call.)
    2011-05-23 09:23:05下载
    积分:1
  • 把握 p-中位 (主文件)
    为解决 p-中位问题的启发式算法。只有主文件。代码的其余部分将作为分离文件上载。
    2022-04-09 11:29:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载