声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2693|回复: 8

[编程技巧] 调用linprog函数出错,看不懂提示

[复制链接]
发表于 2007-8-6 23:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
如题,不知道什么意思,做的一个线性规划,调用linprog函数,提示错误信息是这样的,我看不懂:
Warning: Length of lower bounds is > length(x); ignoring extra bounds.
> In checkbounds at 27
  In linprog at 160
Exiting: The primal is infeasible; the equality constraints are dependent
but not consistent.
其中:checkbounds at 27对应的内容是这样的:   warning('optimlib:checkbounds:IgnoringExtraLbs', ...
           'Length of lower bounds is > length(x); ignoring extra bounds.');
而linprog at 160对应着提示:[x0,lb,ub,msg] = checkbounds(x0,lb,ub,nvars);
请版内朋友看到后给诊断一下,拜谢了!

[ 本帖最后由 eight 于 2007-8-7 13:20 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-8-6 23:26 | 显示全部楼层

最好把源程序附上来,只看出错信息搞不懂...

:@L
 楼主| 发表于 2007-8-6 23:30 | 显示全部楼层
发表于 2007-8-6 23:35 | 显示全部楼层
发个源程序又没什么坏处,也浪费不了多少时间,还是发上来看看吧
要是涉及什么机密信息就不用发了:@L
 楼主| 发表于 2007-8-6 23:40 | 显示全部楼层
因为一篇论文要用到,自己编写的一个DEA模型算法,区别于现有的模型,也不知道对错,怕发上来丢人现眼。我自己推测可能是上下限设定出了问题,我先修正一下再说。谢谢kunlei,我记住你了,以后请多指教!
发表于 2007-8-6 23:49 | 显示全部楼层
“Length of lower bounds is > length(x); ignoring extra bounds.”
感觉应该是lb的长度超过了变量x的长度,字面上看不出其他有用的信息了...
 楼主| 发表于 2007-8-6 23:56 | 显示全部楼层
呵呵,是的,是的 下限设定的时候维数设置多了。不过新的问题又出现了,又提示:Exiting: The primal is infeasible; the equality constraints are dependent  but not consistent.
唉,估计模型本身有缺陷。
发表于 2007-8-7 00:04 | 显示全部楼层
"the equality constraints are dependent  but not consistent."
看一下模型里的等式约束有没有问题?
 楼主| 发表于 2007-8-7 01:15 | 显示全部楼层
今天太晚了,还是没有发现问题,明天报告结果。谢谢了:handshake
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-24 01:17 , Processed in 0.054266 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表