lingo找错model:sets:quarters/1..45/xr,yr,wr,zr,tr;endsetsmin=@sum(quarters(i):xr(i)*zr(i)*tr(i));@sum(quarters(i):xr(i)*yr(i))>=5320;@sum(quarters(i):xr(i)*wr(i))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 07:38:19
lingo找错model:sets:quarters/1..45/xr,yr,wr,zr,tr;endsetsmin=@sum(quarters(i):xr(i)*zr(i)*tr(i));@sum(

lingo找错model:sets:quarters/1..45/xr,yr,wr,zr,tr;endsetsmin=@sum(quarters(i):xr(i)*zr(i)*tr(i));@sum(quarters(i):xr(i)*yr(i))>=5320;@sum(quarters(i):xr(i)*wr(i))
lingo找错
model:
sets:
quarters/1..45/xr,yr,wr,zr,tr;
endsets
min=@sum(quarters(i):xr(i)*zr(i)*tr(i));
@sum(quarters(i):xr(i)*yr(i))>=5320;
@sum(quarters(i):xr(i)*wr(i))

lingo找错model:sets:quarters/1..45/xr,yr,wr,zr,tr;endsetsmin=@sum(quarters(i):xr(i)*zr(i)*tr(i));@sum(quarters(i):xr(i)*yr(i))>=5320;@sum(quarters(i):xr(i)*wr(i))
集定义的时候缺一个: quarters/1..45/:xr,yr,wr,zr,tr;
这样可以运行了
但是好像你的模型没有可行解