程序如下:
MAX 48.7x1+48.7y1+52.0x2+52.0y2+61.3x3+61.3y3+72.0x4+72.0y4+48.7x5+48.7y5+52.0x6+52.0y6+64.0x7+64.0y7
s.t.
48.7x1+52.0x2+61.3x3+72.0x4+48.7x5+52.0x6+64.0x7<1020
48.7y1+52.0y2+61.3y3+72.0y4+48.7y5+52.0y6+64.0y7 <1020
2x1+3x2+x3+0.5x4+4x5+2x6+x7<40
2y1+3y2+y3+0.5y4+4y5+2y6+y7<40
48.7x5+48.7y5+52.0x6+52.0y6+64.0x7+64.0y7<302.7
0<x1+y1<8
0<x2+y2<7
0<x3+y3<9
0<x4+y4<6
0<x5+y5<6
0<x6+y6<4
0<x7+y7<8
END
MAX 48.7x1+48.7y1+52.0x2+52.0y2+61.3x3+61.3y3+72.0x4+72.0y4+48.7x5+48.7y5+52.0x6+52.0y6+64.0x7+64.0y7
s.t.
48.7x1+52.0x2+61.3x3+72.0x4+48.7x5+52.0x6+64.0x7<1020
48.7y1+52.0y2+61.3y3+72.0y4+48.7y5+52.0y6+64.0y7 <1020
2x1+3x2+x3+0.5x4+4x5+2x6+x7<40
2y1+3y2+y3+0.5y4+4y5+2y6+y7<40
48.7x5+48.7y5+52.0x6+52.0y6+64.0x7+64.0y7<302.7
0<x1+y1<8
0<x2+y2<7
0<x3+y3<9
0<x4+y4<6
0<x5+y5<6
0<x6+y6<4
0<x7+y7<8
END