Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

CPLEX MATLAB API (CPLEX Error 3003: Not a mixed-integer problem)

  • 1.  CPLEX MATLAB API (CPLEX Error 3003: Not a mixed-integer problem)

    Posted 06/13/23 05:09 PM
    Edited by Marcus Garvie 06/13/23 08:19 PM

    This is my first time trying to use the CPLEX MATLAB API. I wish to find all solutions for an integer linear programming problem in CPLEX, but doing this from Matlab. I'm not interested in the solution. I just want to retrieve from Matlab how many solutions there are and how long it took CPLEX to find those solutions. I have successfully solved the ILP problem manually in CPLEX to give 157,288 solutions in about 84 seconds. However, when I use the CPLEX MATLAB API Matlab gives the error:

    Error using cplexlink12100
    CPLEX Error  3003: Not a mixed-integer problem.


    Error in Cplex/populate

    Error in indexing

    Error in solveLPwithCPLEX (line 31)
        model.populate();

    But my LP file is a pure integer LP formulation? I have attached both the Matlab function (also added as a text file) that attempts to run the API and the LP file. Thank you for any advice as to how I can get around this problem.



    ------------------------------
    Marcus Garvie
    ------------------------------