資源描述:
《數(shù)學(xué)建模_線性規(guī)劃_運(yùn)輸問題lingo程序》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、有限制的運(yùn)輸問題:6個(gè)發(fā)點(diǎn)6個(gè)收點(diǎn),其供應(yīng)量、接收量和運(yùn)費(fèi)如下表1(”-”表示某個(gè)發(fā)電無法向某個(gè)收點(diǎn)運(yùn)輸貨物)。求運(yùn)輸方案,使得總費(fèi)用最小。所建模型最好具有推廣性。收點(diǎn)1收點(diǎn)2收點(diǎn)3收點(diǎn)4收點(diǎn)5收點(diǎn)6供應(yīng)量發(fā)點(diǎn)120151654720發(fā)點(diǎn)2171533128630發(fā)點(diǎn)39121816301350發(fā)點(diǎn)41281127191440發(fā)點(diǎn)5-71021103230發(fā)點(diǎn)6---6111330接受量305040303020設(shè):發(fā)點(diǎn)i向收點(diǎn)j的貨物供應(yīng)量為xij.目標(biāo)函數(shù):MinZ=20x11+15x12+16x13+5x14+4x15+7x16+
2、17x21+15x22+33x23+12x24+8x25+6x26+9x31+12x32+18x33+16x34+30x35+13x36+12x41+8x42+11x43+27x44+19x45+14x46+7x52+10x53+21x54+10x55+32x56+6x64+11x65+13x66供應(yīng)限制:x11+x12+x13+x14+x15+x16=20x21+x22+x23+x24+x25x+26=30x31+x32+x33+x34+x35+x36=50x41+x42+x43+x44+x45+x46=40x52+x53+x54+
3、x55+x56=30x64+x65+x66=30需求限制:x11+x21+x31+x41=30x12+x22+x32+x42+x52=50x13+x23+x33+x43+x53=40x14+x24+x34+x44+x54+x64=30x15+x25+x35+x45+x55+x65=30x16+x26+x36+x46+x56+x66=20LINGO代碼:min=20*x11+15*x12+16*x13+5*x14+4*x15+7*x16+17*x21+15*x22+33*x23+12*x24+8*x25+6*x26+9*x31+12*x
4、32+18*x33+16*x34+30*x35+13*x36+12*x41+8*x42+11*x43+27*x44+19*x45+14*x46+7*x52+10*x53+21*x54+10*x55+32*x56+6*x64+11*x65+13*x66;x11+x12+x13+x14+x15+x16=20;x21+x22+x23+x24+x25+x26=30;x31+x32+x33+x34+x35+x36=50;x41+x42+x43+x44+x45+x46=40;x52+x53+x54+x55+x56=30;x64+x65+x66=3
5、0;x11+x21+x31+x41=30;x12+x22+x32+x42+x52=50;x13+x23+x33+x43+x53=40;x14+x24+x34+x44+x54+x64=30;x15+x25+x35+x45+x55+x65=30;x16+x26+x36+x46+x56+x66=20;LINGO求解結(jié)果:Globaloptimalsolutionfound.Objectivevalue:1620.000Infeasibilities:0.000000Totalsolveriterations:9VariableValueRe
6、ducedCostX110.00000014.00000X120.0000006.000000X130.0000004.000000X140.0000003.000000X1520.000000.000000X160.0000005.000000X210.0000007.000000X220.0000002.000000X230.00000017.00000X240.0000006.000000X2510.000000.000000X2620.000000.000000X3130.000000.000000X3220.000000.0
7、00000X330.0000003.000000X340.00000011.00000X350.00000023.00000X360.0000008.000000X410.0000007.000000X420.0000000.000000X4340.000000.000000X440.00000026.00000X450.00000016.00000X460.00000013.00000X5230.000000.000000X530.0000000.000000X540.00000021.00000X550.0000008.00000
8、0X560.00000032.00000X6430.000000.000000X650.0000003.000000X660.0000007.000000RowSlackorSurplusDualPrice11620.0