> 其他 >
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
人气:451 ℃ 时间:2020-09-20 13:24:47
解答
只能在语法上改 没有可行解 自己看看你写的约束对不对吧model:sets:xx/v1..v14/:p,q;xi/w1..w7/:c;xn(xx,xi):x;endsetsmin=@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...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版