请选择 进入手机版 | 继续访问电脑版

QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 3621|回复: 2

[问题求助] lingo出现unexpected jacobian overflow

[复制链接]
字体大小: 正常 放大

8

主题

4

听众

322

积分

升级  7.33%

  • TA的每日心情
    开心
    2015-9-17 11:12
  • 签到天数: 86 天

    [LV.6]常住居民II

    发表于 2012-8-8 13:05 |显示全部楼层
    |招呼Ta 关注Ta
    lingo程序总是出现unexpected jacobian overflow的错误,不知为什么?
                           我的程序为:
    model:
    title location problem;
    sets:
      demand/1..6/:a,b,d;
      supply/1..2/:x,y,e;
      link(demand,supply):c;
    ENDSETs
    data:
      a=1.25,8.75,0.5,5.75,3,7.25;
      b=1.25,0.75,4.75,5,6.5,7.75;
      d=3,5,4,7,6,11;
      e=20,20;
    enddata
    init:
      x,y=5,1,2,7;
    endinit
    [obj] min=@sum(link(i,j):c(i,j)*((a(i)-x(j))^2+(y(j)-b(i))^2)^(1/2));
    @for(demand(i):[demand_con] @sum(supply(j):c(i,j)) =d(i););
    @for(supply(i):[supply_con] @sum(demand(j):c(j,i)) <=e(i););
       @for(supply: @bnd(0.5,X,8.75); @bnd(0.75,Y,7.75); );

    end

                                                               答案标准程序为:
    MODEL:
    Title Location Problem;
    sets:
         demand/1..6/:a,b,d;
        supply/1..2/:x,y,e;
        link(demand,supply):c;
    endsets
    data:
    !locations for the demand(需求点的位置);
    a=1.25,8.75,0.5,5.75,3,7.25;
    b=1.25,0.75,4.75,5,6.5,7.75;
    !quantities of the demand and supply(供需量);
    d=3,5,4,7,6,11; e=20,20;
    enddata
    init:
    !initial locations for the supply(初始点);
    x,y=5,1,2,7;
    endinit
    !Objective function(目标);
    [OBJ] min=@sum(link(i,j): c(i,j)*((x(j)-a(i))^2+(y(j)-b(i))^2)^(1/2) );
    !demand constraints(需求约束);
    @for(demand(i):[DEMAND_CON] @sum(supply(j):c(i,j)) =d(i););
    !supply constraints(供应约束);
    @for(supply(i):[SUPPLY_CON] @sum(demand(j):c(j,i)) <=e(i); );
    @for(supply: @bnd(0.5,X,8.75); @bnd(0.75,Y,7.75); );
    END

    请问下各位大侠,我的程序哪儿出错了?和答案程序有什么不同?
    zan
    shaox 实名认证       

    16

    主题

    42

    听众

    1061

    积分

    升级  6.1%

  • TA的每日心情
    开心
    2013-9-15 16:21
  • 签到天数: 266 天

    [LV.8]以坛为家I

    群组数学建摸协会

    群组西安交大数学建模

    群组学术交流A

    群组数学建模认证项目实训

    回复

    使用道具 举报

    8

    主题

    4

    听众

    322

    积分

    升级  7.33%

  • TA的每日心情
    开心
    2015-9-17 11:12
  • 签到天数: 86 天

    [LV.6]常住居民II

    shaox 发表于 2012-8-8 14:19
    意想不到的雅可比溢出
    有些字母要大写

    lingo不是不区分大小写吗?
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

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

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

    蒙公网安备 15010502000194号

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

    GMT+8, 2024-3-29 05:47 , Processed in 0.551113 second(s), 66 queries .

    回顶部