lingo 0-1规划问题model:sets:class/1..56/;number/1..56/;assign(class,number):c,x;endsetsdata:c = 41,45,44,44,26,44,42,20,20,38,37,25,45,45,45,44,20,30,39,35,38,38,28,25,30,36,20,24,32,33,41,33,51,39,20,20,44,37,38,39,42,40,37,50,50,42,43,41,42,45,42,19,39,75,17,17;Enddatamax=@sum(assign:c*x);@for(assign(i):@bin(x(i)));end求大神看下哪里错了

问题描述:

lingo 0-1规划问题
model:
sets:
class/1..56/;
number/1..56/;
assign(class,number):c,x;
endsets
data:
c = 41,45,44,44,26,44,42,20,20,38,37,25,45,45,45,44,20,30,39,35,38,38,28,25,30,36,20,24,32,33,41,33,51,39,20,20,44,37,38,39,42,40,37,50,50,42,43,41,42,45,42,19,39,75,17,17;
Enddata
max=@sum(assign:c*x);
@for(assign(i):@bin(x(i)));
end
求大神看下哪里错了

c是56*56的矩阵,你给的那点数据明显不够数...model:sets:class/1..56/;number/1..56/;assign(class,number):c,x;endsetsdata:!c = 41,45,44,44,26,44,42,20,20,38,37,25,45,45,45,44,20,30,39,35,38,38,28,25,30,36,...