EE--mailmailxuezhen@live.nuc.edu.cnxuezhen@live.nuc.edu.cnLINGOLINGOLINGOLINGOLINGOLINGOLINGOLINDOLinusLINGO:LinearINteractiveandGeneralOptimizer“”Schrage−−−1212121002,0xxxxxx+≤⎧⎪≤⎨⎪≥⎩LINGO“”“”“”“”“”“”@BIN@GIN@FREE@BND@@ABS(X):@COS(X):@EXP(X):@FLOOR(X):@LOG(X):@MOD(X,Y):Xe@SQR(X):@POW(X,Y):YX@SIGN(X):0X0X≥@SMAX(list):@SQRT(X):@GIN(X):@BIN(X):@FREE(X):@BND(L,X,U):LXU≤≤“”“”#NOT#()^*/+()#EQ#,#NE#,#GT#,#GE#,#LT#,#LE##AND##OR#=LINGOVariablesTotalNonlinearIntegerConstraintsNonzerosObjective()Infeasibility()LINGO41min[400()450()20()]IRPIOPIINVI=++∑()40,1,,4RPII≤=()(1)()()()INVIINVIRPIOPIDEMI=−++−(0)10INV=1,,4I=(),(),(),()0,1,,4DEMIRPIOPIINVII≥=QUARTERSQUARTERS“”“”“@SUM”“@FOR”“@”“”“”@123456a1.258.750.55.7537.25b1.250.754.7556.57.75d3547611(,)iiabid(,)jjxyjejiijc1,,6;1,2ij==262211min()()ijjijijifcxayb===−+−∑∑21,1,,6ijijcdi===∑262211min()()ijjijijifcxayb===−+−∑∑61,1,2ijjicej=≤=∑ijcijc,jjxyijc66(,)ab@“”STP1CSTS(1,2)kCk=S(1,2)kCk=PS1CSTS(1,2)jBj=STS(1,2,3);iAi=iA(1,2)jBj=jB(1,2);kCk=kC.T(,)dXYYX()LXSX()0;LS=()min{()(,)},YXLXLYdYXXS≠=+≠123()6,()3,()3LALALA===11233()min{()6,()8,()7}10()7LBLALALALA=+++==+#S3A2B1CT@,LINGO,.STS3A2B1CT1..n1..51,2,3,4,5-stringM..stringNcar101..car208car101,car102,…,car208dayM..dayNMON..FRIMON,TUE,WED,THU,FRImonthM..monthNOCT..JANOCT,NOV,DEC,JAN-monthYearM..monthYearNOCT2001..JAN2002OCT2001,NOV2001,DEC2001,JAN2002setname[/member_list/][:attribute_list];setnamemember_list,attribute_list.“”setname(parent_set_list)[/member_list/][:attribute_list];parent_set_listLINGOExcel.@FILE@FILE(filename)“~”.filename(INEED(I),SUPPLY(I),ORDERED,min()()COSTIORDEREDI×∑()()()NEEDIORDEREDISUPPLYI≤≤myfile.ldt(LINGO)“~”@TEXT([‘filename’])@TEXT.filenamefilename,filename,5(Examp05.lg4),@TEXT,(Example06.lg4):LINGO@TEXTexam06.txt(GeneralSolverPricesandRanges.DualComputations|PricesExcel@OLELINGO@OLE(spreadsheet_file[,range_name_list])spreadsheet_file,(*.xls),range_name_list“@OLE(…)”,“()=@OLE(...)”LINGOExcel,“@OLE(…)=”5(Examp05.lg4),@OLE.Excelmydata.xlsExcel@OLELINGO,B4:B7,“”CITISES.C4:C7D4:D7E4:E7F4:F7,SUPPLYSOLUTION.COSTNEED5(Examp07.lg4):‘mydata.xls’CITIESMYSETmydata.xlsCOSTCOST(NEED,SUPPLY)ORDEREDmydata.xlsSOLUTIONmydata.xls,ORDEREDLINGO