运筹学实验报告
实验课程:运筹学 实验日期: 任课教师:王 挺
班级:11级应数二班 姓名:刘兴成 学号:0201110237
一、实验名称: 简单线性规划模型的求解与Lingo软件的初步使用 二、实验目的:
了解Lingo软件的基本功能和简单线性规划模型的求解的输入和输出结果。熟悉Lingo软件在运筹学模型求解中的作用,增强自身的动手能力,提高实际应用能力;
(1) (2)
(3) (4)
解:(1) model:
max=2*x1+5*x2;
x1+x3=4;
x2+x4=3;
x1+2*x2+x5=8;
End
Objective value: 19.00000
Infeasibilities: 0.000000
Total solver iterations: 1
Variable Value Reduced Cost
X1 2.000000 0.000000
X2 3.000000 0.000000
X3 2.000000 0.000000
X4 0.000000 1.000000
X5 0.000000 2.000000
(2):model:
max=2*x1+5*x2;
x1<4;
x2<=3;
x1+2*x2<=8;
end
Objective value: 19.00000
Infeasibilities: 0.000000
Total solver iterations: 1
Variable Value Reduced Cost
X1 2.000000 0.000000
X2 3.000000 0.000000
X3 2.000000 0.000000
X4 0.000000 1.000000
X5 0.000000 2.000000
解(3):model:
max=x1+2*x2;
x1<=4;
x2<=3;
x1+2*x2<=8;
end
Objective value: 19.00000
Infeasibilities: 0.000000
Total solver iterations: 1
Variable Value Reduced Cost
X1 2.000000 0.000000
X2 3.000000 0.00