MATLAB Answers

1

Error using linprog quoting the code "-2_4"

Error using linprog (line 336) LINPROG encountered an internal error that caused the solution to lose feasibility. We are sorry for the inconvenience.
Please contact technical support for assistance with your problem, quoting the code "-2_4".

  7 Comments

I also got the same error. Surendra did you get the problem solved?
Dear Philip Chow
1. Disable Pre-Processing using the flags 'PreProcess','none' with optimoptions: ?options = optimoptions(@linprog, 'Preprocess', 'none');
Unfortunately the code it is failing in is buried in a .p file that contain a complete class.

Sign in to comment.

1 Answer

 Accepted Answer

Try the following: It worked for me.
Disable Pre-Processing using the flags 'PreProcess','none' with optimoptions;
options = optimoptions(@linprog, 'Preprocess', 'none');

  1 Comment

Thanks a lot!

Sign in to comment.