LINDO程式之中不能用 分號和除號所以你寫的約束條件的最後兩個式子是不對的,同時LINDO程式之中不能有括號!
程式如下:
max 3100x11+3100x12+3100x13+3800x21+3800x22+3800x23+3500x31+3500x32+3500x33+2850x41+2850x42+2850x43
st
2)x11+x12+x13
3)x21+x22+x23
4)x31+x32+x33
5)x41+x42+x43
6)x11+x21+x31+x41
7)x12+x22+x32+x42
8)x13+x23+x33+x43
9)480x11+650x21+580x31+390x41
10)480x12+650x22+580x32+390x42
11)480x13+650x23+580x33+390x43
12)16x11+16x21+16x31+16x41-10x12-10x22-10x32-10x42=0
13)8x11+8x21+8x31+8x41-10x13-10x23-10x33-10x43=0
end
結果如下:
LINDO程式之中不能用 分號和除號所以你寫的約束條件的最後兩個式子是不對的,同時LINDO程式之中不能有括號!
程式如下:
max 3100x11+3100x12+3100x13+3800x21+3800x22+3800x23+3500x31+3500x32+3500x33+2850x41+2850x42+2850x43
st
2)x11+x12+x13
3)x21+x22+x23
4)x31+x32+x33
5)x41+x42+x43
6)x11+x21+x31+x41
7)x12+x22+x32+x42
8)x13+x23+x33+x43
9)480x11+650x21+580x31+390x41
10)480x12+650x22+580x32+390x42
11)480x13+650x23+580x33+390x43
12)16x11+16x21+16x31+16x41-10x12-10x22-10x32-10x42=0
13)8x11+8x21+8x31+8x41-10x13-10x23-10x33-10x43=0
end
結果如下: