Exiting: One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value so far:
2 views (last 30 days)
Show older comments
Dear All I am running my code but I faced this problem Exiting: One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value so far: the primal appears to be infeasible (and the dual unbounded). (The dual residual < TolFun=1.00e-008.) Could you please suggest what shall I do? It is so urgent
Thanks again for any suggestions Regards
1 Comment
Walter Roberson
on 26 Mar 2012
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Accepted Answer
Titus Edelhofer
on 26 Mar 2012
Hi,
I guess (!) you are using linprog and get this error message? In this case the combination of bounds, equality constraints and inequality constraints are not permitting a solution. Try the following: either run linprog with bounds and inequality constraints only (setting Aeq=[], beq=[]), then with bounds and equality constraints only (setting A=[], b=[]). If one of them works, the other fails, start to take only parts of the "bad" constraints (i.e., some rows of Aeq and beq or A and b) to find out) which are the offending rows ...
Titus
0 Comments
More Answers (1)
Bestun
on 26 Mar 2012
1 Comment
Walter Roberson
on 26 Mar 2012
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!