【lingo】unexpected Jacobian overflow 哪里错了.
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/08/17 04:49:09
【lingo】unexpected Jacobian overflow 哪里错了.
model:
sets:
compt/1..8/:d,a,b,c;
cars/1..30/:f,right;
cost(cars,compt):A1,B1,C1,DS;
endsets
data:
d=8 1524 29 37 45 49 55;
a=4 1 23 1 0 2 5;
b=1 5 01 2 4 2 3;
c=5 2 42 4 3 5 1;
e=6;g=20;
enddata
[obj]min=e*g+@sum(cars(i):f(i)*10)+@sum(cost(i,j):(4*A1(i,j)+3*B1(i,j)+C1(i,j))*DS(i,j)*1.8);
每趟车的装载量不得超过车的最大载重量;
@for(cars(i):@sum(compt(j):4*A1(i,j)+3*B1(i,j)+C1(i,j))=a(j));@for(compt(j):@sum(cars(i):B1(i,j))>=b(j));
@for(compt(j):@sum(cars(i):C1(i,j))>=c(j));
每一趟车到第j个公司的实际距离:
@for(cars(i):@for(compt(j):distance(i,j)=@if(right(i),60-d(j),d(j)));
装载A、B、C材料时不得拆装
@for(cost(i,j):@gin(A1(i,j)));
@for(cost(i,j):@gin(B1(i,j)));
@for(cost(i,j):@gin(C1(i,j)));
@for(cars(i):@bin(right(i)));
end
model:
sets:
compt/1..8/:d,a,b,c;
cars/1..30/:f,right;
cost(cars,compt):A1,B1,C1,DS;
endsets
data:
d=8 1524 29 37 45 49 55;
a=4 1 23 1 0 2 5;
b=1 5 01 2 4 2 3;
c=5 2 42 4 3 5 1;
e=6;g=20;
enddata
[obj]min=e*g+@sum(cars(i):f(i)*10)+@sum(cost(i,j):(4*A1(i,j)+3*B1(i,j)+C1(i,j))*DS(i,j)*1.8);
每趟车的装载量不得超过车的最大载重量;
@for(cars(i):@sum(compt(j):4*A1(i,j)+3*B1(i,j)+C1(i,j))=a(j));@for(compt(j):@sum(cars(i):B1(i,j))>=b(j));
@for(compt(j):@sum(cars(i):C1(i,j))>=c(j));
每一趟车到第j个公司的实际距离:
@for(cars(i):@for(compt(j):distance(i,j)=@if(right(i),60-d(j),d(j)));
装载A、B、C材料时不得拆装
@for(cost(i,j):@gin(A1(i,j)));
@for(cost(i,j):@gin(B1(i,j)));
@for(cost(i,j):@gin(C1(i,j)));
@for(cars(i):@bin(right(i)));
end
![【lingo】unexpected Jacobian overflow 哪里错了.](/uploads/image/z/17610073-25-3.jpg?t=%E3%80%90lingo%E3%80%91unexpected+Jacobian+overflow+%E5%93%AA%E9%87%8C%E9%94%99%E4%BA%86.)
cost(cars,compt):A1,B1,C1,DS;
这句最后的分号改成英文的分号才行
再问: 还是不行T T看来还有错误
再答: 这有这里有语法错误 如果有别的错误你写清楚错误提示
这句最后的分号改成英文的分号才行
再问: 还是不行T T看来还有错误
再答: 这有这里有语法错误 如果有别的错误你写清楚错误提示
运行程序lingo程序,出现unexpected jacobian overflow
lingo使用错误在使用lingo时出现unexpected jacobian overflow contact lin
下面的lingo程序有什么问题,错误代码是1017,unexpected Jacobian overflow:
麻烦帮忙看下程序:运行程序lingo程序,出现unexpected jacobian overflow
运行lingo程序时出现unexpected jacobian overflow,代码贴在下面,
LINGO程序 出现unexpected Jacobian overflow min=B1+B2+B3+B4;
运行lingo程序出现unexpected jacobian
lingo中输入min=x;1312.5x-y7.79为什么老是显示unexpected jacobian o
这个lingo哪里错了?
下面LINGO程序哪里错了~急
LINGO程序哪里出错了
请问这个lingo的线性规划算法哪里错了?版本是lingo 11.0……