lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 12:38:36
lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema
lingo 程序改错
MODEL:
A 3 RDC 27 Vendor Transportation Problem;
SETS:
Import RDCS and vendors from Excel;
RDCS:CAPACITY;
VENDORS :DEMAND;
LINKS( RDCS,VENDORS):COST,VOLUME;
ENDSETS
The objective;
MIN = @SUM( LINKS( I,J):
COST( I,J) * VOLUME( I,J));
The demand constraints;
@FOR( VENDORS( J):
@SUM( RDCS( I):
VOLUME( I,J)) = DEMAND( J));
The capacity constraints;
@FOR( RDCS( I):
@SUM( VENDORS( J):VOLUME( I,J))
lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema
!A 3 RDC 27 Vendor Transportation Problem;
这句最后一个分号用了中文状态下的输入导致了sets部分代码被当做注释处理.
LINKS( RDCS,VENDORS):COST,VOLUME; 这句第一个逗号也是用了中文状态下输入的.要改成英文状态下输入.
还有就是集合定义是要表明元素个数.
RDCS/1..10/:CAPACITY; 表示RDCS集合有10个元素标号为1至10,CAPACITY是该集合的一个属性.跟数组有点类似.
各个错误代码的含义可到本人的百度空间日志看看.