登录
首页 » 算法 » issue a travel home to travel home to drive a car with the minimum of cost yi us...

issue a travel home to travel home to drive a car with the minimum of cost yi us...

于 2023-09-07 发布 文件大小:885.00 B
0 175
下载积分: 2 下载次数: 1

代码说明:

旅行家问题 一个旅行家想驾驶汽车以最少的费yi 用从一个城市到另一个城市(假设出发时油箱是空的)。给定两个城市之间的距离为D1、汽车油箱的容量为C(以升为单位),每升汽油能行驶的距离为 D2,出发点每升汽油价格P和沿途油站数N(N可以为零),油站i离出发点距离Di,每升汽油价格Pi(i=1,2...N)。计算结果四舍五入至小数点后两位。 如果无法到达目的地,则输出“No Solution"。-issue a travel home to travel home to drive a car with the minimum of cost yi used from one city to another city (assuming starting at the fuel tank was empty). Given the two cities for the distance between D1, car fuel tank capacity of the C (in liters) per liter petrol traveling distance to the D2, the starting point liter gasoline prices P and several petrol stations along the N (N can be zero), PFS i distance from the starting point Di per liter Steam oil prices Pi (i = 1,2 ... N). Calculation results rounded to two decimal places. If unable to reach their destination, the export of "No Solution."

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

发表评论

0 个回复

  • 流体力学 计流体力学 计流体力学 计流体力学
    计算流体力学 计算流体力学 计算流体力学 计算流体力学-Compute fluid mechanics with matlab This file give some example of transheat
    2022-02-13 13:16:54下载
    积分:1
  • 奇数幻方矩阵
    奇数幻方矩阵
    2022-05-23 06:06:04下载
    积分:1
  • 遗传源代码
    资源描述遗传算法的灵感来自于达尔文的进化理论。遗传算法求解问题的解决方法。算法是由一个和一组的解决方案和(所代表的,染色体)称为“人口”。从一个人口的解决方案,并用于形成一个新的人口。这是出于希望,新的人口将比旧的更好。选择新的解决方案(后代)的解决方案是根据他们的健身选择-更合适的是他们有更多的机会,他们必须重现。这是重复的,直到某些条件(例如人口数量或最佳解决方案的改进)是满意的。
    2022-04-09 08:34:30下载
    积分:1
  • 转人民币大写C++源代码.zip
    转人民币大写C++源代码.zip-turn yuan capital C source code. Zip
    2022-02-03 12:49:05下载
    积分:1
  • 实现线性表的一些基本操作,列如线性表的插入删除 查找
    实现线性表的一些基本操作,列如线性表的插入删除 查找-To achieve some of the basic operation of a linear table, column, such as linear search the table insert delete
    2022-02-13 14:16:40下载
    积分:1
  • 28335产生pwm
    基于DSP28335的spwm程序 EVA下面的通用定时器T1工作于连续增/减计数模式,产生三角载波,载波频率为3000Hz,载波比N=60,因此调制波形正弦波的频率为50Hz。本实验中,调制度为  0.8。 预存A相和B相的正弦值列表,C相的可以根据A相和B相的值计算出来
    2022-12-07 21:00:03下载
    积分:1
  • 说明: 1.本程序为复合形 !* 2.程序功能是求解约束最优化问题...
    说明: 1.本程序为复合形法 !* 2.程序功能是求解约束最优化问题-Note : 1. The procedures for the complex method!* 2. Programming is solving constrained optimization problem
    2022-12-01 18:25:02下载
    积分:1
  • 基​本​粒​子​群​
    基本粒子群算法的matlab源程序,求解优化问题
    2023-02-22 03:55:03下载
    积分:1
  • Kalman filtering program fortran!!!
    卡尔曼滤波的程序 fortran-Kalman filtering program fortran!!!
    2023-04-26 09:40:03下载
    积分:1
  • 矩阵相乘(C实现)
    将矩阵视为一维数组,利用struct来存储指向矩阵内容的指针、行数和列数,并且给予内存空间回收机制,即便是做了很多次矩阵相乘也不会导致内存浪费。 如果有必要最大限度的提高运算速率,请将循环自变量调整为register
    2022-12-10 00:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载