跪求lingo高手更正,提示model is ill defined,具体模型如下:model:sets:city/1,2,3,4/:a;biao(city,city):d,w,x,m;endsetsmin=@sum(biao:x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);@for(biao:x(i,j)*m(i,j)
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 21:50:54
跪求lingo高手更正,提示model is ill defined,具体模型如下:model:sets:city/1,2,3,4/:a;biao(city,city):d,w,x,m;endsetsmin=@sum(biao:x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);@for(biao:x(i,j)*m(i,j)
跪求lingo高手更正,提示model is ill defined,具体模型如下:
model:
sets:
city/1,2,3,4/:a;
biao(city,city):d,w,x,m;
endsets
min=@sum(biao:x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);
@for(biao:x(i,j)*m(i,j)
跪求lingo高手更正,提示model is ill defined,具体模型如下:model:sets:city/1,2,3,4/:a;biao(city,city):d,w,x,m;endsetsmin=@sum(biao:x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);@for(biao:x(i,j)*m(i,j)
这样改语法上没问题 但是你写的还是有问题 既然m是对称的 那么平方和一定也对称 而你这里写的是不对称的 而且前面平方和都取等号而且限制m为整数很可能就没有可行解 比如你不可能找两个整数平方和让它等于11
model:
sets:
city/1,2,3,4/:a;
biao(city,city):d,w,x,m;
endsets
min=@sum(biao(i,j):x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);
@for(biao(i,j):x(i,j)*m(i,j)