Lingo error 63模型定义不正确 model:sets:\x05xx/v1..v14/;\x05xi/w1..w7/;\x05xn(xx,xi):x;\x05pi/p1..p14/:p;\x05qi/q1..q14/:q;\x05ci/c1..c7/:c;endsetsmin=@sum(xi:x(k,1)*p(k)*q(k));@for(xx(J):@sum(xi(I):x(J,I))=1);@sum(xn:x(I,J)*p(I))=0);@for(xn:@

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 07:00:58
Lingoerror63模型定义不正确model:sets:\x05xx/v1..v14/;\x05xi/w1..w7/;\x05xn(xx,xi):x;\x05pi/p1..p14/:p;\x05q

Lingo error 63模型定义不正确 model:sets:\x05xx/v1..v14/;\x05xi/w1..w7/;\x05xn(xx,xi):x;\x05pi/p1..p14/:p;\x05qi/q1..q14/:q;\x05ci/c1..c7/:c;endsetsmin=@sum(xi:x(k,1)*p(k)*q(k));@for(xx(J):@sum(xi(I):x(J,I))=1);@sum(xn:x(I,J)*p(I))=0);@for(xn:@
Lingo error 63模型定义不正确
model:
sets:
\x05xx/v1..v14/;
\x05xi/w1..w7/;
\x05xn(xx,xi):x;
\x05pi/p1..p14/:p;
\x05qi/q1..q14/:q;
\x05ci/c1..c7/:c;
endsets
min=@sum(xi:x(k,1)*p(k)*q(k));
@for(xx(J):@sum(xi(I):x(J,I))=1);
@sum(xn:x(I,J)*p(I))=0);
@for(xn:@BIN(x));
data:
p=688 780 528 388 328 400 420 580 880 1760 620 480 1620 132;
q=5.9186 4.7 5.7 11.148 11.902 4.32 8.3857 10.571 18.427 6.3125 7.1194 11.7 9.006 0;
c=1760 1320 1320 1760 1320 1320 1320;
enddata
end

Lingo error 63模型定义不正确 model:sets:\x05xx/v1..v14/;\x05xi/w1..w7/;\x05xn(xx,xi):x;\x05pi/p1..p14/:p;\x05qi/q1..q14/:q;\x05ci/c1..c7/:c;endsetsmin=@sum(xi:x(k,1)*p(k)*q(k));@for(xx(J):@sum(xi(I):x(J,I))=1);@sum(xn:x(I,J)*p(I))=0);@for(xn:@
只能在语法上改 没有可行解 自己看看你写的约束对不对吧
model:
sets:
xx/v1..v14/:p,q;
xi/w1..w7/:c;
xn(xx,xi):x;
endsets
min=@sum(xx(k):x(k,1)*p(k)*q(k));
@for(xx(J):@sum(xi(I):x(J,I))=1);
@for(xi(I):@sum(xx(J):x(J,I)*p(J))=0);
@for(xn:@BIN(x));
data:
p=688 780 528 388 328 400 420 580 880 1760 620 480 1620 132;
q=5.9186 4.7 5.7 11.148 11.902 4.32 8.3857 10.571 18.427 6.3125 7.1194 11.7 9.006 0;
c=1760 1320 1320 1760 1320 1320 1320;
enddata
end