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

基于生长法的路线最优化

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

  • c
    说明:  停车场位管理系统程序,管理场位,便于汽车的停放(Parking spaces management system procedures, management, market position, easy to park the car)
    2009-10-04 23:51:18下载
    积分:1
  • 7813-1hebeigongye-university-MBA
    河北工业微机复试重点,我就使用这个过的,都是里面的(Hebei industrial microcomputer retest focus on the use of this too, are inside)
    2013-03-10 14:24:51下载
    积分:1
  • ACM
    poj两道题的c++实现。已经测试过可以通过oj(The c++ implementation of the POJ two problem. It has been tested through OJ)
    2017-12-15 10:52:11下载
    积分:1
  • 万能脚本录制器V12.12
    万能游戏脚本录制器,支持后台,非常好用的游戏脚本制作工具!(Very easy to use game script production tool!)
    2018-08-13 23:28:29下载
    积分:1
  • d3d9wj
    说明:  #include #include "d3d9.h" #include "main.h" tDirect3DCreate9 oDirect3DCreate9; IDirect3D9 *APIENTRY hkDirect3DCreate9(UINT SDKVersion) { IDirect3D9 *d3dint = oDirect3DCreate9(SDKVersion); if( d3dint != NULL ) { hkIDirect3D9 *ret = new hkIDirect3D9(&d3dint); add_log("Direct3DCreate9(%i) succeeded...", SDKVersion); add_log("Hooked Direct3D9 interface: 0x%x -> 0x%x", ret->m_pD3Dint, ret); } else add_log("Direct3DCreate9(%i) failed...", SDKVersion); return d3dint; }
    2020-06-22 08:00:02下载
    积分:1
  • BANK-3P-LV
    .NET银行系统,.NET银行系统,开户,转账,查询,取款,存款。登陆(.NET bank system,.NET bank system)
    2013-07-29 16:22:31下载
    积分:1
  • AutoProgram
    “整体叶轮五轴联动数控加工自动编程”,只要用Microsoft Access(数据库)软件把叶轮的截面数据建成表,并输入叶轮的基本尺寸,就可以自动生成叶轮的数控加工程序。("impeller overall 5-axis NC machining automatic programming" as long as Microsoft Access (database) software onto the impeller section data into tables, the impeller and the importation of basic dimensions, it can automatically generate impeller NC programs.)
    2006-05-29 09:55:16下载
    积分:1
  • MSP430PPDIUSBD12
    msp430与PDIUSBD12的固件程序 D12驱动win2k_xpD12test.inf D12驱动win98D12TEST.SYS usb上位机测试程序usb430d12EasyD12.dll usb上位机测试程序usb430d12EasyD12.H (msp430 the PDIUSBD12 firmware D12 driver win2k_xp D12test.inf D12 driver win98 D12TEST.SYS usb host computer test program usb430d12 EasyD12.dll, usb host computer test program usb430d12 EasyD12.H, )
    2012-04-25 14:48:03下载
    积分:1
  • mybank_cPP
    银行家算法模拟程序的实现 用可视(图形)化界面完成银行家算法的模拟程序。 模拟程序能够实现对不同数目进程,不同数目资源种类,不同当前状态的测试,通过银行家算法判断任意次数的资源请求是否会得意满足,并对提出资源请求的进程作出正确处理。 模拟程序还需要能够正确回收资源,并在回收资源后判断是否需要唤醒阻塞进程,如需要则将先前因申请资源失败而被阻塞的进程唤醒,并提供资源分配(Bankers algorithm simulation program realization )
    2020-11-11 23:49:46下载
    积分:1
  • 获取文档图像感兴趣区域
    基于投影的二值图像感兴趣区域的识别标记
    2022-02-01 21:24:04下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载