登录
首页 » c++ » 运筹学动态规划问题

运筹学动态规划问题

于 2022-05-12 发布 文件大小:370.14 kB
0 103
下载积分: 2 下载次数: 1

代码说明:

#include   #include   #include   using namespace std;   int x[4],s[4];   //x[k] 表示给第k个营业区增设的销售店 范围1-4  //s[k] 示给第k个营业区到3个营业区增设的销售店 int f[4][7],p[4][5]; //p[i][j] 给第i个营业区增加j个 //f[i][j] 给第i至第3个营业区增加j个  int max_value = 0; void caclF() { //计算出f[] for(int k=2;k>=1;k--){     f[k][s[k]] = p[k][x[k]]+f[k+1][s[k+1]];  } } void caclS() { //计算出s[] for(int i=2;i

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

发表评论

0 个回复

  • ANSYS
    说明:  ANSYS单元的中文翻译,详细介绍了各单元的用途.(Chinese translation of ANSYS element, setting out in detail the use of the unit.)
    2008-08-27 10:38:50下载
    积分:1
  • xianxingsichashbianma
    线性四叉树编码,包括四进制和十进制数据的编码(Linear quadtree coding, including four hexadecimal and decimal data coding)
    2013-04-17 00:52:59下载
    积分:1
  • qt103规约
    这是基于QT3写的103规约以太网源代码,可以作为参考学习(This is the 103 protocol Ethernet source code based on QT3, which can be used as a reference for learning.)
    2021-03-09 22:59:27下载
    积分:1
  • 读取SD卡ID
    在windows或wince的VC或EVC环境下读取SD卡ID值的有效方法。
    2022-04-24 01:31:31下载
    积分:1
  • WMItechnologyincomputerLANApplication
    WMI是一种很好的远程控制技术,有很好的安全性,与很强的功能。该论文讲述的是WMI技术在计算机局域网中的应用。(WMI is a good remote control technology, has good security, and strong functions. The paper describes the WMI technology in the computer local area network application.)
    2010-01-21 17:33:26下载
    积分:1
  • dengjiCH3
    说明:  单片机MC9S08AW60脉宽调制 TPM1CH3 LS2亮度控制 KBI SEG控制亮度等级 。本工程为定时器输出PWM波测试工程实例通过对PWM占空比的调节,实现小灯的渐亮的功能,当占空比为100%时再从0%逐渐增加.PWM的周期一定要足够的快,否则其输出电压的波动范围很大,且测不出一个稳定的电压值,这样通过就观察不到小灯渐亮效果. 另外,在改变PWM的周期和占空比之前和之后要分别禁止和使用。(MC9S08AW60 pulse width modulation TPM1CH3 LS2 brightness control KBI SEG brightness level. This project is an example of testing the output PWM wave of the timer. By adjusting the duty ratio of the PWM, the function of the small lamp gradually brightening is realized. When the duty ratio is 100%, the period of the small lamp gradually increases from 0%. The period of the PWM must be fast enough. Otherwise, the fluctuation range of the output voltage is large and a stable voltage value can not be measured, so the effect of the gradual brightening of the small lamp can not be observed. In addition, the period of the PWM is changed. Before and after duty cycle should be prohibited and used separately.)
    2018-12-24 19:10:02下载
    积分:1
  • MT900C9s
    倒计时驱动程序,ATMGEG128,CAVAR环境编译。交通信号机驱动板控制程序。(Countdown driver, CAVAR, ATMGEG128 environment compiler. Driver board control program for traffic signal machine.)
    2015-07-09 13:59:55下载
    积分:1
  • livepanoConverterVideo
    基于opengl和glsl的鱼眼全景图,将鱼眼图片,通过GLSL编写的shader贴到球上,让人眼观看的时候产生鱼眼效果。(-Based on OpenGL and glsl fisheye panorama, fish eye picture, written in glsl shader attached to the ball, let the human eye viewing when the fisheye effect.)
    2017-05-03 17:56:31下载
    积分:1
  • 一个由C#开发的抓屏软件,源代码 一个由C#开发的抓屏软件,源代码...
    一个由C#开发的抓屏软件,源代码 一个由C#开发的抓屏软件,源代码-a software used to capture the screena software used to capture the screena software used to capture the screena software used to capture the screen
    2022-05-17 00:22:12下载
    积分:1
  • demo7_4
    一个基于OPENGL生成地形LOD的例子,算法为二元线性(OPENGL generated based on the example of the terrain LOD algorithm for binary linear)
    2007-12-01 00:48:34下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载