One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi All. Could any one tell me how to solve 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.)) the optimization part of the code is: function [variables, solution] = solve(B, N, padN, fD, fL, tied, objP); bigNumber = 1000; warning off MATLAB:divideByZero; [padB padFL padTied] = deal(sparse(size(B, 1), size(N, 2)), sparse(1, size(N, 2)), sparse(size(tied, 1), size(N, 2))); equalityMatrix = [B padB; padN N; fL padFL; tied padTied]; equalityRHS = sparse(size(equalityMatrix, 1), 1); equalityRHS(size(B, 1) + size(N, 1) + 1, 1) = 1; obj = [fD; objP']; % objP' contains plastic multiplier terms lowerB = [-bigNumber * ones(size(B, 2), 1); sparse(size(N, 2), 1)]; upperB = [bigNumber * ones(size(B, 2), 1); bigNumber * ones(size(N, 2), 1)]; [variables, solution] = linprog(obj, [], [], equalityMatrix, equalityRHS, lowerB, upperB);
when I change the dimension of the problem from dlo2(9, 6, 0, 0, 2, 5, 36) to dlo2(1, 1, 0, 0, 2, 5, 36) the above error appears
Could any one suggest me what this error mean or how to fix it?
I look forward to hearing from you Regards Bestun
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!