首页 > 中学考试杂题 > 题目详情
哪位大神可以帮我看下下面的lingo程序哪里出错了,说是第5行有有语法错误.MODEL:SETS:QUARTERS/1,
题目内容:
哪位大神可以帮我看下下面的lingo程序哪里出错了,说是第5行有有语法错误.MODEL:SETS:QUARTERS/1,2,3,4/,RP,OP,INV; ENDSETS MIN=@SUM(QUARTERS:400*RP+450*OP+20*INV); @FOR(QUARTERS @FOR(QUARTERS(I)|I#GT#1:INV(I)=INV(I-1)+RP(I)+OP(I)-DEM(I);); INV(1)=10+RP(1)+OP(1)-DEM(1); DATA:DEM=40,60,75,25; enddataEND
哪位大神可以帮我看下下面的lingo程序哪里出错了,说是第5行有有语法错误.MODEL:SETS:QUARTERS/1,2,3,4/,RP,OP,INV; ENDSETS MIN=@SUM(QUARTERS:400*RP+450*OP+20*INV); @FOR(QUARTERS @FOR(QUARTERS(I)|I#GT#1:INV(I)=INV(I-1)+RP(I)+OP(I)-DEM(I);); INV(1)=10+RP(1)+OP(1)-DEM(1); DATA:DEM=40,60,75,25; enddataEND
本题链接: