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

基于生长法的路线最优化

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

  • 4
    说明:  romberg求积分,用C++编程实现的 非常好用 谢谢下载(romberg I)
    2009-12-03 09:32:30下载
    积分:1
  • demo-button
    基于对话框的动画按钮演示,程序较简单,可以为初学的朋友一个参考的例子。(Dialog-based animation demo button, the program is relatively simple, beginner' s friends for a reference example.)
    2011-10-22 01:15:02下载
    积分:1
  • zigbee简单实验
    说明:  获取CC2530内部电压与温度,通过串口向pc机上面发送数据(Obtain CC2530 internal voltage and temperature)
    2020-10-28 21:29:57下载
    积分:1
  • 该源码在C#平台上实现了一个网络游戏简单系统
    该源码在C#平台上实现了一个网络游戏简单系统-The source code in C# Platform implements a simple network game system
    2022-03-16 08:47:02下载
    积分:1
  • 该程序关于WEb Service 的编成例子 用C# 编写 简单易懂 该例子侧重客户端的编写 在Visual Studio .Net2003下编译通过...
    该程序关于WEb Service 的编成例子 用C# 编写 简单易懂 该例子侧重客户端的编写 在Visual Studio .Net2003下编译通过 -the WEb Service procedures on the formation of examples in C# prepared easily understood examples of the focus on the preparation of the client in Visual Studio. Under compile Net2003
    2022-07-10 00:28:25下载
    积分:1
  • RC522
    ..............................................................................................................................
    2022-02-02 11:54:04下载
    积分:1
  • duoj
    STC52单片机控制舵机,可设置转舵限制度数(STC52 microcontroller to control the steering, steering limit can be set.)
    2018-01-03 21:04:28下载
    积分:1
  • pwm
    说明:  STM32CubeMX _pwm示例,可以用于参考,希望对大家有帮助(STM32CubeMX _pwm Examples, which can be used for reference, I hope to help you all.)
    2020-06-18 06:20:01下载
    积分:1
  • 数据挖掘
    这个项目是关于筑坝教程包括最常用算法在筑坝和执行许多数据挖掘技术
    2023-04-30 05:45:03下载
    积分:1
  • graph-theory
    数据结构图论问题,初学数据结构的学生可以通过这些简单的问题熟悉数据结构课程(Data structure graph theory problem, learning data structures for students through these simple questions can be familiar with the data structure courses)
    2013-10-14 17:22:09下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载