One or more of the residuals, duality gap, or total relative error has grown 100000 times greater than its minimum value
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!