QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 8517|回复: 0
打印 上一主题 下一主题

The model is locally infeasible. However, feasible solutions may or may no...

[复制链接]
字体大小: 正常 放大
2012fang 实名认证       

1

主题

11

听众

4

积分

升级  80%

该用户从未签到

跳转到指定楼层
1#
发表于 2015-4-9 18:10 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
请问我用lingo15求解一下程序,出现The model is locally infeasible.  However, feasible solutions may or may not exist in other regions.  Consider invoking the global solver or the multistart feature.
--------------------------------------------------------------------------
model:
sets:
teachers/1..3/;
students/1..5/:d;
places/p1 p2 p3/;
times/t1 t2/;
majors/m1 m2 m3/;
link1(students,teachers):a;
link2(teachers,times):b;
link3(teachers,majors):c;
link5(teachers,times,places):x;
link6(students,times,places):y;
endsets
[objective] max=@sum(places(p)sum(times(t)sum(teachers(l)sum(students(s)c(l,d(s))*x(l,t,p)*y(s,t,p))))));
@for(teachers(l)for(students(s)for(times(t)for(places(p):x(l,t,p)*y(s,t,p)<=b(l,t)))));
@for(teachers(l)for(students(s)for(times(t)for(places(p):x(l,t,p)*y(s,t,p)<=c(l,d(s))))));
@for(times(t)for(places(p)sum(teachers(l):x(l,t,p))=@floor(3/2)));
@for(teachers(l)for(students(s)for(times(t)for(places(p):x(l,t,p)+y(s,t,p)+a(s,l)<3))));
@for(times(t)for(places(p)sum(students(s):y(s,t,p))<=@floor(5/(2*2)+1)));
@for(times(t)for(places(p)sum(students(s):y(s,t,p))>=@floor(5/(2*2)-1)));
@for(students(s)sum(places(p)sum(times(t):y(s,t,p)))=1);
@for(teachers(l)for(times(t)sum(places(p):x(l,t,p))<=1));
@for(link5(l,t,p)bin(x(l,t,p)));
@for(link6(s,t,p)bin(y(s,t,p)));
data:
a=1 0 0
  0 0 0
  0 0 0
  0 0 0
  0 0 1;
b=0 1
  1 1
  1 0;
c=0 2 1
  1 2 3
  2 0 3;
d=2 1 1 1 3;
enddata
end
--------------------------------------------------------
是什么原因?





zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
您需要登录后才可以回帖 登录 | 注册地址

qq
收缩
  • 电话咨询

  • 04714969085
fastpost

关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

手机版|Archiver| |繁體中文 手机客户端  

蒙公网安备 15010502000194号

Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

GMT+8, 2024-5-1 22:15 , Processed in 0.246955 second(s), 49 queries .

回顶部