请问这段Lingo程序错在哪里?MODEL:SETS:Add/1 2 3 4 5 6/:p;Demand/1 2 3 4 5 6/:d;Num/1 2 3 4 5 6/:x;Left/1 2 3 4 5 6 7/:y;ENDSETSDATA:p=0.1 0.1 0.2 0.2 0.3 0.3;d=42 32 41 67 25 29;ENDSETSmin=@SUM(0.5*(1+Add(I):p(I))*(Num(I):x(I))^2)+@SUM(0.05*

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 14:34:34
请问这段Lingo程序错在哪里?MODEL:SETS:Add/123456/:p;Demand/123456/:d;Num/123456/:x;Left/1234567/:y;ENDSETSDATA:

请问这段Lingo程序错在哪里?MODEL:SETS:Add/1 2 3 4 5 6/:p;Demand/1 2 3 4 5 6/:d;Num/1 2 3 4 5 6/:x;Left/1 2 3 4 5 6 7/:y;ENDSETSDATA:p=0.1 0.1 0.2 0.2 0.3 0.3;d=42 32 41 67 25 29;ENDSETSmin=@SUM(0.5*(1+Add(I):p(I))*(Num(I):x(I))^2)+@SUM(0.05*
请问这段Lingo程序错在哪里?
MODEL:
SETS:
Add/1 2 3 4 5 6/:p;
Demand/1 2 3 4 5 6/:d;
Num/1 2 3 4 5 6/:x;
Left/1 2 3 4 5 6 7/:y;
ENDSETS
DATA:
p=0.1 0.1 0.2 0.2 0.3 0.3;
d=42 32 41 67 25 29;
ENDSETS
min=@SUM(0.5*(1+Add(I):p(I))*(Num(I):x(I))^2)+@SUM(0.05*q*Demand(I):d(I))+@SUM(0.1*Num(I):x(I));
@FOR(Left(I):@GIN(y(I)));
y7=0;
@FOR(Num(I):@GIN(x(I)));
END

请问这段Lingo程序错在哪里?MODEL:SETS:Add/1 2 3 4 5 6/:p;Demand/1 2 3 4 5 6/:d;Num/1 2 3 4 5 6/:x;Left/1 2 3 4 5 6 7/:y;ENDSETSDATA:p=0.1 0.1 0.2 0.2 0.3 0.3;d=42 32 41 67 25 29;ENDSETSmin=@SUM(0.5*(1+Add(I):p(I))*(Num(I):x(I))^2)+@SUM(0.05*
哪来的q呀
MODEL:
SETS:
WH/1..6/:P,D,X;
LE/1..7/:Y;
ENDSETS
DATA:
P=0.1 0.1 0.2 0.2 0.3 0.3;
D=42 32 41 67 25 29;
ENDDATA
Y(7)=0;
@FOR(WH(I):@GIN(X(I)));
@FOR(LE(J)|J#NE#7:@GIN(Y(J)));
MIN=@SUM(WH(I):0.5*(1+P(I))*X(I)^2)+@SUM(WH(I):0.05*P(I)*D(I))+@SUM(WH(I):0.1*X(I));
END
你模型中对于Y没有什么约束条件,怎么能来确定呢,所以请仔细检查你的模型