lingo程序找不到可行解,可能是什么原因呢?大牛们,
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/08/19 14:08:38
lingo程序找不到可行解,可能是什么原因呢?大牛们,
model:
sets:
cell/1..85/:rl,L,Fp,Pp,Wp; 地块i;
rl容积率,L地块面积;
activity/1..3/:R,f; 活动类型j;
R:j活动类型的人均建筑面积;
pollution/1..3/:c;!污染物类型r;
station/1..21/:u,e;
allowed(cell,activity):x,A,N,y,H;
x(i,j)人口;
link(pollution,activity):p;
links(cell,activity,pollution):;
stations(cell,activity,station):;
endsets
data:
p=@ole('参数_目标3.xls','Prj');
excel导入Prj;
c=100,150,50;
污染处理成本;
R=11,8,5;
活动人均建筑面积;
rl=@ole('参数_目标3.xls','FAR_i');
地块容积率;
L=@ole('参数_目标3.xls','L_i');
N=@ole('参数_目标3.xls','Nij');
地块面积;
f=102.57,150,200;
活动所需人均用水量;
qc=1;
A=0.5;
H=100;
snp=7775;
np=0.9;
bp=1;
sp=0.5;
enddata
min=@sum(links(i,j,k):c(k)*p(k,j)*x(i,j));
目标函数:环境影响最小化;
@for(cell(i):@sum(activity(j):R(j)*x(i,j))
model:
sets:
cell/1..85/:rl,L,Fp,Pp,Wp; 地块i;
rl容积率,L地块面积;
activity/1..3/:R,f; 活动类型j;
R:j活动类型的人均建筑面积;
pollution/1..3/:c;!污染物类型r;
station/1..21/:u,e;
allowed(cell,activity):x,A,N,y,H;
x(i,j)人口;
link(pollution,activity):p;
links(cell,activity,pollution):;
stations(cell,activity,station):;
endsets
data:
p=@ole('参数_目标3.xls','Prj');
excel导入Prj;
c=100,150,50;
污染处理成本;
R=11,8,5;
活动人均建筑面积;
rl=@ole('参数_目标3.xls','FAR_i');
地块容积率;
L=@ole('参数_目标3.xls','L_i');
N=@ole('参数_目标3.xls','Nij');
地块面积;
f=102.57,150,200;
活动所需人均用水量;
qc=1;
A=0.5;
H=100;
snp=7775;
np=0.9;
bp=1;
sp=0.5;
enddata
min=@sum(links(i,j,k):c(k)*p(k,j)*x(i,j));
目标函数:环境影响最小化;
@for(cell(i):@sum(activity(j):R(j)*x(i,j))
![lingo程序找不到可行解,可能是什么原因呢?大牛们,](/uploads/image/z/7263683-35-3.jpg?t=lingo%E7%A8%8B%E5%BA%8F%E6%89%BE%E4%B8%8D%E5%88%B0%E5%8F%AF%E8%A1%8C%E8%A7%A3%2C%E5%8F%AF%E8%83%BD%E6%98%AF%E4%BB%80%E4%B9%88%E5%8E%9F%E5%9B%A0%E5%91%A2%3F%E5%A4%A7%E7%89%9B%E4%BB%AC%2C)
一般来说可能是约束矛盾 具体地要具体看
如果你觉得一定有可行解 可以随便找一组可行解然后代入看看
如果你觉得一定有可行解 可以随便找一组可行解然后代入看看