MATLAB: How to debug this error message: INTLINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude.

errorintlinprogOptimization Toolbox

INTLINPROG stopped because some objective or constraint matrix coefficients are too large in magnitude.
Error in [x,fval,exitflag,output] = intlinprog(f,intcon,Aineq, bineq, Aeq, beq,lb,ub);

Best Answer

The error message has told you that the input coefficient data f, Aineq, bineq, etc... to intlinprog have values that are too large. Have you checked what those values are?
>>max(abs(f(:))), max(abs(Aineq(:))), etc...
I'm guessing they may be Infs.
In any case, you almost certainly have a bug in the creation of f, Aineq, etc..., and you almost certainly have to be the one to fix it, because only you can know what the real input should be for this application.
Related Question