我在使用lingo 9.0的时候,出现错误代码1017.还有Unexpected Jacobian overflow
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/08/17 05:59:05
我在使用lingo 9.0的时候,出现错误代码1017.还有Unexpected Jacobian overflow
原程序如下
model:
sets:
city/1..5/:u;
link(city,city):distance,x;
endsets
data:
distance=
0 14 12 7 10
14 0 9 13 5
12 9 0 6 8
7 13 6 0 11
10 5 8 11 0;
enddata
n=@size(city);
min=@sum(link:distance*x);
@for(city(k):
@sum(city(i)|i#ne#k:x(i,k))=1;
@sum(city(j)|j#ne#i:x(k,j))=1;
@for(city(j)|j#gt#1#and#j#ne#k:
u(j)>=u(k)+x(k,j)-(n-2)*(1-x(k,j))+(n-3)*x(j,k)););
@for(link:@bin(x));
@for(city(k)|k#gt#1:
u(k)=1+(n-2)*x(k,1););
end
原程序如下
model:
sets:
city/1..5/:u;
link(city,city):distance,x;
endsets
data:
distance=
0 14 12 7 10
14 0 9 13 5
12 9 0 6 8
7 13 6 0 11
10 5 8 11 0;
enddata
n=@size(city);
min=@sum(link:distance*x);
@for(city(k):
@sum(city(i)|i#ne#k:x(i,k))=1;
@sum(city(j)|j#ne#i:x(k,j))=1;
@for(city(j)|j#gt#1#and#j#ne#k:
u(j)>=u(k)+x(k,j)-(n-2)*(1-x(k,j))+(n-3)*x(j,k)););
@for(link:@bin(x));
@for(city(k)|k#gt#1:
u(k)=1+(n-2)*x(k,1););
end
![我在使用lingo 9.0的时候,出现错误代码1017.还有Unexpected Jacobian overflow](/uploads/image/z/17610074-26-4.jpg?t=%E6%88%91%E5%9C%A8%E4%BD%BF%E7%94%A8lingo+9.0%E7%9A%84%E6%97%B6%E5%80%99%2C%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%811017.%E8%BF%98%E6%9C%89Unexpected+Jacobian+overflow)
这样就对了 有一个指标的约束你把k写成i了
model:
sets:
city/1..5/:u;
link(city,city):distance,x;
endsets
data:
distance=
0 14 12 7 10
14 0 9 13 5
12 9 0 6 8
7 13 6 0 11
10 5 8 11 0;
enddata
n=@size(city);
min=@sum(link:distance*x);
@for(city(k):
@sum(city(i)|i#ne#k:x(i,k))=1;
@sum(city(j)|j#ne#k:x(k,j))=1;
@for(city(j)|j#gt#1#and#j#ne#k:
u(j)>=u(k)+x(k,j)-(n-2)*(1-x(k,j))+(n-3)*x(j,k)););
@for(link:@bin(x));
@for(city(k)|k#gt#1:
u(k)=1+(n-2)*x(k,1););
end
model:
sets:
city/1..5/:u;
link(city,city):distance,x;
endsets
data:
distance=
0 14 12 7 10
14 0 9 13 5
12 9 0 6 8
7 13 6 0 11
10 5 8 11 0;
enddata
n=@size(city);
min=@sum(link:distance*x);
@for(city(k):
@sum(city(i)|i#ne#k:x(i,k))=1;
@sum(city(j)|j#ne#k:x(k,j))=1;
@for(city(j)|j#gt#1#and#j#ne#k:
u(j)>=u(k)+x(k,j)-(n-2)*(1-x(k,j))+(n-3)*x(j,k)););
@for(link:@bin(x));
@for(city(k)|k#gt#1:
u(k)=1+(n-2)*x(k,1););
end
lingo使用错误在使用lingo时出现unexpected jacobian overflow contact lin
下面的lingo程序有什么问题,错误代码是1017,unexpected Jacobian overflow:
运行程序lingo程序,出现unexpected jacobian overflow
麻烦帮忙看下程序:运行程序lingo程序,出现unexpected jacobian overflow
运行lingo程序时出现unexpected jacobian overflow,代码贴在下面,
LINGO程序 出现unexpected Jacobian overflow min=B1+B2+B3+B4;
运行lingo程序出现unexpected jacobian
我在使用lingo时出现
lingo 的错误代码 error 11
PDroidPatcher 出现错误 错误代码如下: An unexpected error occured. Meth
lingo中输入min=x;1312.5x-y7.79为什么老是显示unexpected jacobian o
lingo 错误代码11