model is ill defined.lingo新手求助~model:sets:row /1,2,3,4,5/:;col/1,2,3,4/:;link(row,col):c,x;endsetsinit:c=@OLE('X:\4.xlsx',sjk);endinit@bin(x(i,j));目标函数;min=@sum(link(i,j):c(i,j)*x(i,j));约束条件;@for(link(i,j):@sum(link(i,j):x(i,j
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 18:05:05
model is ill defined.lingo新手求助~model:sets:row /1,2,3,4,5/:;col/1,2,3,4/:;link(row,col):c,x;endsetsinit:c=@OLE('X:\4.xlsx',sjk);endinit@bin(x(i,j));目标函数;min=@sum(link(i,j):c(i,j)*x(i,j));约束条件;@for(link(i,j):@sum(link(i,j):x(i,j
model is ill defined.lingo新手求助~
model:
sets:
row /1,2,3,4,5/:;
col/1,2,3,4/:;
link(row,col):c,x;
endsets
init:
c=@OLE('X:\4.xlsx',sjk);
endinit
@bin(x(i,j));
目标函数;
min=@sum(link(i,j):c(i,j)*x(i,j));
约束条件;
@for(link(i,j):@sum(link(i,j):x(i,j))
model is ill defined.lingo新手求助~model:sets:row /1,2,3,4,5/:;col/1,2,3,4/:;link(row,col):c,x;endsetsinit:c=@OLE('X:\4.xlsx',sjk);endinit@bin(x(i,j));目标函数;min=@sum(link(i,j):c(i,j)*x(i,j));约束条件;@for(link(i,j):@sum(link(i,j):x(i,j
@for(link(i,j):@bin(x(i,j)));
另外你的init可能应该是data 你需要自己对照你的问题好好想想