下面这个LINGO程序问什么20分钟一直运行不出来?model:sets:hang/1..8/;lie/1..19/:b;zonghe(hang,lie):x;endsetsdata:b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;enddatamin=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);@for(lie(j):(@sum(
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 05:24:12
下面这个LINGO程序问什么20分钟一直运行不出来?model:sets:hang/1..8/;lie/1..19/:b;zonghe(hang,lie):x;endsetsdata:b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;enddatamin=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);@for(lie(j):(@sum(
下面这个LINGO程序问什么20分钟一直运行不出来?
model:
sets:
hang/1..8/;
lie/1..19/:b;
zonghe(hang,lie):x;
endsets
data:
b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;
enddata
min=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);
@for(lie(j):(@sum(hang(i):x(i,j)))
下面这个LINGO程序问什么20分钟一直运行不出来?model:sets:hang/1..8/;lie/1..19/:b;zonghe(hang,lie):x;endsetsdata:b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;enddatamin=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);@for(lie(j):(@sum(
model:
sets:
hang/1..8/;
lie/1..19/:b;
zonghe(hang,lie):x;
endsets
data:
b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;
enddata
min=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);
@for(lie(j):@sum(hang(i):x(i,j))3*b(j));
@for(zonghe(i,j):@gin(x(i,j)));
@for(zonghe(i,j):@bnd(0,x(i,j),b(j)));
x(1,1)=0;
x(2,3)=0;
x(3,4)=0;
x(4,6)=0;
x(5,12)=0;
x(6,14)=0;
x(7,16)=0;
已修改,楼主看看吧