早教吧 育儿知识 作业答案 考试题库 百科 知识分享

lingo运行错误improperuseofattributename,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))

题目详情
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))
看了 lingo运行错误impro...的网友还看了以下: