QQ登录

只需要一步,快速开始

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

[原创]求lingo高手指教

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

1

主题

0

听众

18

积分

升级  13.68%

该用户从未签到

新人进步奖

跳转到指定楼层
1#
发表于 2007-5-9 20:01 |只看该作者 |倒序浏览
|招呼Ta 关注Ta
model:
sets:
worker/1..3/;
!the num of worker;
cell/1..3/;
!the num of cell;
batch/1..6/;
!the num of batch;
wc(worker,cell):x;
!the ith worker assigned to the jth  cell;
bc(batch,cell):y;
!the mth batch assigned to the jth cell;
matrix(worker,batch):c;
!the capacity of ith worker mading the mth batch;
endsets
sum(bc:c(i,m)*x(i,j)*y(m,j">min=@max(wcsum(bc:c(i,m)*x(i,j)*y(m,j)));
!the obj function;
@for(cell(j)sum(worker(i):x(i,j))=3);
@for(worker(i)sum(cell(j):x(i,j))=1);
@for(batch(m)sum(cell(j):y(m,j))=1);
@for(cell(j)sum(batch(m):y(m,j))=6);
data:
c=62720,73728,35200,120384,29295,55080,
8280,49152,48400,88704,37665,55080,
47040,43008,61600,101376,33480,41310;
enddata
end
zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信

1

主题

0

听众

18

积分

升级  13.68%

该用户从未签到

新人进步奖

运行时显示  Error Code:63

    Error Text:

      Model is ill defined.

      Check for undefined indices and/or conditions in expression:1

 这个错误什么意思,怎么改变程序才合理呢!

  谢谢拉!

回复

使用道具 举报

madio        

3万

主题

1311

听众

5万

积分

  • TA的每日心情
    奋斗
    2024-7-1 22:21
  • 签到天数: 2014 天

    [LV.Master]伴坛终老

    自我介绍
    数学中国站长

    社区QQ达人 邮箱绑定达人 优秀斑竹奖 发帖功臣 风雨历程奖 新人进步奖 最具活力勋章

    群组数学建模培训课堂1

    群组数学中国美赛辅助报名

    群组Matlab讨论组

    群组2013认证赛A题讨论群组

    群组2013认证赛C题讨论群组

    给你修改了一下,没有错误了,不过不清楚是不是和你原先的模型一样,最好把模型放上来看看!

    model:
    sets:
    worker/1..3/;
    !the num of worker;
    cell/1..3/;
    !the num of cell;
    batch/1..6/;
    !the num of batch;
    wc(worker,cell):x;
    !the ith worker assigned to the jth  cell;
    bc(batch,cell):y;
    !the mth batch assigned to the jth cell;
    matrix(worker,batch):c;
    !the capacity of ith worker mading the mth batch;
    endsets
    sum(cell(j)sum(matrix(i,m):c(i,m)*x(i,j)*y(m,j">min=@max(wcsum(cell(j)sum(matrix(i,m):c(i,m)*x(i,j)*y(m,j))));
    !the obj function;
    @for(cell(j)sum(worker(i):x(i,j))=3);
    @for(worker(i)sum(cell(j):x(i,j))=1);
    @for(batch(m)sum(cell(j):y(m,j))=1);
    @for(cell(j)sum(batch(m):y(m,j))=6);
    data:
    c=62720,73728,35200,120384,29295,55080,
    8280,49152,48400,88704,37665,55080,
    47040,43008,61600,101376,33480,41310;
    enddata
    end

    数学建模社会化
    回复

    使用道具 举报

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

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

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

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

    蒙公网安备 15010502000194号

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

    GMT+8, 2025-8-18 23:08 , Processed in 0.542673 second(s), 67 queries .

    回顶部