lingo程序:
min=100*x+40*y;
x+y1>4;
x+y1+y2>3;
x+y1+y2+y3>4;
x+y1+y2+y3+y4-x1>6;
x1+y2+y3+y4+y5>5;
x+y3+y4+y5+x6>6;
x+y4+y5+y6+y7>8;
x+y5+y6+y7+x8>8;
y1+y2+y3+y4+y5+y6+y7+y8-y=1;
y
lingo程序:
min=100*x+40*y;
x+y1>4;
x+y1+y2>3;
x+y1+y2+y3>4;
x+y1+y2+y3+y4-x1>6;
x1+y2+y3+y4+y5>5;
x+y3+y4+y5+x6>6;
x+y4+y5+y6+y7>8;
x+y5+y6+y7+x8>8;
y1+y2+y3+y4+y5+y6+y7+y8-y=1;
y