lingo中的错误提示在哪找?以下为所写程序,MODEL:sets:num_i/1..8/:x,k;num_p/9..22/:x,k;num_q/23..46/:x,k;num_j/1..3/:n,m,l;endsetsdata:n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/20 04:33:40
lingo中的错误提示在哪找?以下为所写程序,MODEL:sets:num_i/1..8/:x,k;num_p/9..22/:x,k;num_q/23..46/:x,k;num_j/1..3/:n,m,l;endsetsdata:n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63
lingo中的错误提示在哪找?以下为所写程序,
MODEL:
sets:
num_i/1..8/:x,k;
num_p/9..22/:x,k;
num_q/23..46/:x,k;
num_j/1..3/:n,m,l;
endsets
data:
n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63,49,35,27,16,12,2,0,6,0,0,0,1;
l=3,3.5,4,4.5,5,5.5,6,6.5,7,7.5,8,8.5,9,9.5,10,10.5,11,11.5,12,12.5,13,13.5,14,14.5,15,15.5,16,16.5,17,17.5,18,18.5,19,19.5,20,20.5,21,21.5,22,22.5,23,23.5,24,24.5,25,25.5,26,26.5;
enddata
[OBJ]max=@sum(num_j(j):x(j)); 目标函数:装出的成品捆数最多
@for(num_i(i):k(i)m(i)
lingo中的错误提示在哪找?以下为所写程序,MODEL:sets:num_i/1..8/:x,k;num_p/9..22/:x,k;num_q/23..46/:x,k;num_j/1..3/:n,m,l;endsetsdata:n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63
你这个集的定义都不对 x和k定义到一个集里面