全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
3369 3
2013-12-09
在用matlab计算时,出现这样的语句
Exiting: One or more of the residuals, duality gap, or total relative error has stalled:         both the primal and the dual appear to be infeasible.
求大神解释

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-12-9 20:53:09
能不能看下具体的代码?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-12-9 21:29:45
Exiting: One or more of the residuals, duality gap, or total relative error
has stalled:
         the dual appears to be infeasible (and the primal unbounded).      
         (The primal residual < TolFun=1.00e-008.)

应该没问题,能运行处结果。
  NOTE: the LargeScale (the default) version of linprog uses a
          primal-dual method. Both the primal problem and the dual problem
          must be feasible for convergence. Infeasibility messages of
          either the primal or dual, or both, are given as appropriate. The
          primal problem in standard form is
               min f'*x such that A*x = b, x >= 0.
          The dual problem is
               max b'*y such that A'*y + s = f, s >= 0.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-2-13 19:21:45
MATLAB中的线性规划问题的标准形式描述如下:
Min z=fTX
s.t. AXb
AeqX=beq
lbXub
其中:f、X、b、beq、lb、ub为向量,A、Aeq为矩阵。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群