Search code examples
matlabmexlinear-programmingcplexinteger-programming

MATLAB has crashed when using CPLEX API for linear programming


Hi I want to solve linear programming (LP) problem which has 25000 binary variables and almost 2555 equality constraints and 50 inequality constraints , so I used cplexbilp function which CPLEX API provided for MATLAB like this:

[x,fval,exitflag,output,] = cplexbilp(f, Aineq, bineq, Aeq, beq);
  • size of the matrices: f=25000x1, Aineq=50x25000, bineq=50x1, Aeq=2555x25000, beq=2255x1

when I run the script, this error appears:

enter image description here

When I review the error details, I see this message:

0x6df51ba9 C:/Program Files/IBM/ILOG/CPLEX_Studio_Preview125/cplex/matlab/x86_win32/cplexlink125.mexw32+00007081 ( ???+000000 )

I think cplexlink125.mexw32 is cplex v12.5 callable library for MATLAB.
So, my question is how to solve this error? and I want to know is the problem size (25000 binary variables) main error root? I read in some resources that Cplex is able to solve large scale LP problems.

  • MATLAB version: R2011a
  • CPLEX version: 12.5

Thanks in advance for any comment or answer


Solution

  • It seems that you are using a "student version" of CPLEX. This version is limited to solve the problems with "up to" 300 variables and 300 constraints. I've solved many problems containing more than 100,000 binary and integer variables in the "commercial version" without any error.