作业帮 > 综合 > 作业

lingo运行错误improper use of attribute name,

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/19 05:01:44
lingo运行错误improper use of attribute name,
model:
sets:
chan/c1..c10/:p,q,w,f;
xie/1..5/:d;
links(chan,xie):x,c,l,a,b,t;
endsets
@for(chan(i):
@sum(xie(j):x(i,j))
修改如下,用设置全局求解器求解可得到结果
model:
sets:
chan/c1..c10/:p,q,w,f;
xie/1..5/:d;
links(chan,xie):x,c,l,a,b,t;
endsets
@for(chan(i):
@sum(xie(j):x(i,j))
再问: 还是有问题啊 你运行了么
再答: 有什么问题?报错代码多少?你设置全局求解器求解了吗? 我运行了,可以出结果。。。。 Global optimal solution found. Objective value: 2476.320 Extended solver steps: 1 Total solver iterations: 704 结果太长了,没办法全部贴出来