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

基于生长法的路线最优化

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

  • PI
    说明:  本程序是模拟常数PI的计算,可以精确到小数点后很多位!(This procedure is a simulation of constant PI calculation can be accurate to a lot of places after the decimal point!)
    2008-12-14 20:35:09下载
    积分:1
  • 购物网站
    购物车程序允许到你的在线购物网站的访问者收集中的项目 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-08-25 22:05:10下载
    积分:1
  • MFC中使用opencv
    本程序是在 MFC 中使用 OpenCV 的演示程序,由3部分组成。 一、Windows 下用 MFC 编制的程序框架 采用设备无关位图DIB实现Windows多文档模式下图像的显示,实现显示的关键函数StretchDIBits的原型如下:
    2022-02-02 17:43:10下载
    积分:1
  • BBS
    说明:  只要实现BBS的一些基本功能,对论坛进行管理和操作等(BBS as long as the realization of some of the basic functions of the Forum for the management and operation of such)
    2008-11-01 16:10:26下载
    积分:1
  • fcest_bfsk
    该工程实现2fsk的载频估计,返回2fsk两个载频估计结果。(The project is estimated to achieve 2fsk carrier frequency, return 2fsk two carrier frequency estimation results.)
    2013-12-25 19:07:04下载
    积分:1
  • xx
    说明:  用MFC实现将位图进行直方图均衡化处理的源码(MFC to achieve the bitmap with the histogram equalization processing of the source)
    2011-05-20 20:34:55下载
    积分:1
  • C#飞行棋游戏
    本代码使用C#语言在vs2010环境下开发的一个飞行棋的游戏。游戏是两人对战的,通过投掷骰子的多少前进一定的步数,谁先走到标记为100的地方就获胜。在游戏过程中会遇到4中障碍,如地雷、时空隧道、暂停等。还有一点是如果两个人走到同一个地方,前一个人会被踩到出发点。
    2022-02-25 19:37:28下载
    积分:1
  • 0MOTOR_CONTROL_003
    说明:  该代码可以对电机运行实现 S型加减速运动,驱动步进电机(This code can realize S-type acceleration and deceleration motion for motor operation and drive stepper motor.)
    2020-06-20 08:20:02下载
    积分:1
  • oMEVnKv5
    VxWorks嵌入式实时操作系统结构简析(VxWorks embedded real-time operating system structure Analysis)
    2007-02-13 13:30:09下载
    积分:1
  • AcmTemplate
    说明:  参加ICPC的acm队员所使用的比赛模板,包括数论图论,计算几何等相关算法。(ICPC members to participate in the acm template used in the game, including number theory graph theory, computational geometry and other related algorithms.)
    2008-10-02 15:07:38下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载