在LINGO中如何将整数输入min 100x1+100x2+40y1+40y2+40y3+40y4+40y5stx1+x2+y1>=4x1+x2+y1+y2>=3x1+x2+y1+y2+y3>=4x2+y1+y2+y3+y4>=6x1+y2+y3+y4+y5>=5x1+x2+y3+y4+y5>=6x1+x2+y4+y5>=8x1+x2+y5>=8y1+y2+y3+y4+y5

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 09:50:27
在LINGO中如何将整数输入min100x1+100x2+40y1+40y2+40y3+40y4+40y5stx1+x2+y1>=4x1+x2+y1+y2>=3x1+x2+y1+y2+y3>=4x2+

在LINGO中如何将整数输入min 100x1+100x2+40y1+40y2+40y3+40y4+40y5stx1+x2+y1>=4x1+x2+y1+y2>=3x1+x2+y1+y2+y3>=4x2+y1+y2+y3+y4>=6x1+y2+y3+y4+y5>=5x1+x2+y3+y4+y5>=6x1+x2+y4+y5>=8x1+x2+y5>=8y1+y2+y3+y4+y5
在LINGO中如何将整数输入
min 100x1+100x2+40y1+40y2+40y3+40y4+40y5
st
x1+x2+y1>=4
x1+x2+y1+y2>=3
x1+x2+y1+y2+y3>=4
x2+y1+y2+y3+y4>=6
x1+y2+y3+y4+y5>=5
x1+x2+y3+y4+y5>=6
x1+x2+y4+y5>=8
x1+x2+y5>=8
y1+y2+y3+y4+y5

在LINGO中如何将整数输入min 100x1+100x2+40y1+40y2+40y3+40y4+40y5stx1+x2+y1>=4x1+x2+y1+y2>=3x1+x2+y1+y2+y3>=4x2+y1+y2+y3+y4>=6x1+y2+y3+y4+y5>=5x1+x2+y3+y4+y5>=6x1+x2+y4+y5>=8x1+x2+y5>=8y1+y2+y3+y4+y5
你那是lindo语法 不要跟lingo语法混用
min=100*x1+100*x2+40*y1+40*y2+40*y3+40*y4+40*y5;
x1+x2+y1>=4;
x1+x2+y1+y2>=3;
x1+x2+y1+y2+y3>=4;
x2+y1+y2+y3+y4>=6;
x1+y2+y3+y4+y5>=5;
x1+x2+y3+y4+y5>=6;
x1+x2+y4+y5>=8;
x1+x2+y5>=8;
y1+y2+y3+y4+y5