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

基于生长法的路线最优化

于 2022-03-12 发布 文件大小:11.52 kB
0 138
下载积分: 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 个回复

  • KMP
    this is a kmp code running on windows
    2015-03-04 14:42:39下载
    积分:1
  • 2005070915564913764
    SMTP协议实现总集,也是本人收集的,有7个程序的源代码!非常好!用于课程设计的!(SMTP protocol collection, and I collected a seven program's source code! Very good! For course design!)
    2005-08-29 14:09:06下载
    积分:1
  • CC430_SendPReceive
    最最精简的射频对传例程,对于我们自己设计的硬件性能验证和无线代码的入门,都非常有帮助。(Most streamlined RF to pass routine performance verification and entry for hardware wireless code are very helpful.)
    2015-05-10 22:09:07下载
    积分:1
  • Modbus_over_serial_line_V1
    his document covers the low level communication details for modbus at the data level for RS232 and other serial interfaces.
    2012-03-22 00:22:14下载
    积分:1
  • H5PS5162GFR DDR2
    H5PS5162GFR 516Mbit DDR2
    2020-06-25 05:00:02下载
    积分:1
  • cs1.6全世界最全的源码
    说明:  CS1.6全网最全源码,资源是长期收集整合(CS1.6 the most complete source code of the whole network, the resource is long-term collection and integration)
    2020-02-13 09:32:16下载
    积分:1
  • AL330B-DVB-A0-SC-VER1.0
    AVERLOGIC A330 原代碼 可支援 1280x1024 / 1024x768 (AVERLOGIC A330 source code that supports 1280x1024/1024x768)
    2010-10-27 18:01:03下载
    积分:1
  • mypick2
    采用opengl编程,在多个三维模型中,使用鼠标点取,达到对三维模型对象的捕捉。(using opengl programming, in a number of 3D models, the use of mouse-point, reached on the three-dimensional object model to capture.)
    2004-07-27 12:01:47下载
    积分:1
  • XC2xxx_Body_Applications
    英飞凌INFINEON开发板资料,学习英飞凌的好资料(INFINEON answers development board material, study the good material answers)
    2012-03-23 15:43:22下载
    积分:1
  • TI-RFID-antna
    ti关于rf天线的设计、调试方法,13.56M精讲( ti on rf antenna design, debugging method, 13.56M succinctly)
    2016-07-01 12:31:01下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载