model is ill defined.lingo新手求助~
问题描述:
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))
答
@for(link(i,j):@bin(x(i,j)));
另外你的init可能应该是data 你需要自己对照你的问题好好想想