运筹学实验报告

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

运筹学实验报告

专业:

班级:ﻩ

姓名:ﻩ

ﻩ学号:

指导教师:

数学与应用数学专业

2015—12—18

实验目录

一、实验目得ﻩ3

二、实验要求ﻩ3

三、实验内容..................................................................................................................... 3

1、线性规划ﻩ3

2、整数规划ﻩ6

3、非线性规划 (13)

4、动态规划........................................................................................................... 14

5、排队论ﻩ19

四、需用仪器设备........................................................................................................... 26

五、MATLAB优化工具箱使用方法简介 (26)

六、LINGO优化软件简介.......................................................................................... 26

七、实验总结ﻩ27

一、实验目得

1、会利用适当得方法建立相关实际问题得数学模型;

2、会用数学规划思想及方法解决实际问题;

3、会用排队论思想及方法解决实际问题;

4、会用决策论思想及方法解决实际问题;

5、掌握MATLAB、LINGO等数学软件得应用;

二、实验要求

1、七人一组每人至少完成一项实验内容;

2、每组上交一份实验报告;

3、每人进行1~2分钟实验演示;

4、实验成绩比例:

出勤:40%

课堂提问:20%

实验报告:30%

实验演示:10%.

三、实验内容

1、线性规划

例运筹学74页14题

Minz=—2x

—x2

s、t、2x1+5x2≤60

x1+x2≤18

3x1+x2≤44

X2≤10

X1,x2≥0

用matlab运行后得到以下结果:

theprogramis with the linear programming

Please inputtheconstraintsnumber of the linear programmingm=6

m=

6

Please input the variantnumber of the linear programming n=2

n =

2

Please input cost array oftheobjective functionc(n)_T=[-2,—1]’

c=

-2

-1

Pleaseinputthe coefficient matrix of the constraints A(m,n)=[2,5;1,1;3,1;0,1;—1,0;0,-1]

A =

2 5

1 1

3 1

0 1

-1 0

0 —1

Please input the resource arrayof the program b(m)_T=[60,18,44,10,0,0]’

b=

60

18

44

10

Optimization terminated、

Theoptimization solution of the programmingis:

x =

13、0000

5、0000

The optimizationvalue of the programming is:

opt_value=

-31、0000

LINDO程序

在命令窗口键入以下内容:

max —2x—y

subject to

2x+5y〈=60

x+y〈=18

3x+y<=44

y<=10

end

按solve键在reports window出现:

Globaloptimal solution found、

Objective value: 0、00

0000

Total solver iterations:0

Variable ValueReduced Cost

X 0、000000 2、000000

Y 0、000000 1、000000

RowSlackorSurplus Dual Price

1 0、000000

1、000000

2 60、00000

0、000000

3 18、00000 0、000000

4 44、00000

0、000000

5 10、00000

0、000000

2、整数规划

课本第二章79页1题

Max z=100x1+180x2+70x3

s、t、40x1+50x2+60x3≤10000

3 x1+6x2+ 2x3≤600

x1≤130

X2≤80

x3≤200

x1x2x3≥0

程序运行及结果:

biprogram

the program is with the binary linear programmingﻫPlease input theconstraintsnumber of the programmi

ng m=5

ﻫm =ﻫ

5ﻫﻫPlease input the variant number of the programming n=5ﻫﻫn =

ﻫ5ﻫﻫPlease input cost array of the objecti

ve functionc(n)_T=[100,180,70]'

ﻫﻫPlease input the coeffic

70

c =ﻫﻫ100ﻫ180ﻫ

ient matrix of the constraints A(m,n)=[40,50,60;3,6,2;1,0,0;0,1,0;0,0,1]

A =ﻫﻫ40 50 60ﻫ 3 62

ﻫ 1 0 0

01

0 10ﻫ

Pleaseinputthe resource arrayoftheprogram b (m)_T=[10000;600;130;80;200]

b =ﻫﻫ10000ﻫ600

130

200

80ﻫ

相关文档
最新文档