大神帮看下这个lingo代码的问题.sets:C/1..1000/:x;endsetsdata:A=@OLE('C:\shuju.xls',A);B=@OLE('C:\shuju.xls',B);D=@OLE('C:\shuju.xls',D);E=@OLE('C:\shuju.xls',E);enddatamax=@sum(C(I):A(I)*x(I));@for(C(I):@sum(C(I):B(I)*x(I))=10000);@for(C(I):@sum(C(I):(E(I)-0.498*D(I))*X(I))=0);@for(C:@bin(x));end大神帮看下这个lingo代码那里错误.提示是:错误代码72Unable to solve for fixed variable:X(1)in constraint:2Loosening the variable's bounds may help.

问题描述:

大神帮看下这个lingo代码的问题.
sets:
C/1..1000/:x;
endsets
data:
A=@OLE('C:\shuju.xls',A);
B=@OLE('C:\shuju.xls',B);
D=@OLE('C:\shuju.xls',D);
E=@OLE('C:\shuju.xls',E);
enddata
max=@sum(C(I):A(I)*x(I));
@for(C(I):@sum(C(I):B(I)*x(I))=10000);
@for(C(I):@sum(C(I):(E(I)-0.498*D(I))*X(I))=0);
@for(C:@bin(x));
end
大神帮看下这个lingo代码那里错误.
提示是:
错误代码72
Unable to solve for fixed variable:
X(1)
in constraint:
2
Loosening the variable's bounds may help.