Decision Optimization

 View Only

CPLEX Callable library error: Access violation when writing in location...

  • 1.  CPLEX Callable library error: Access violation when writing in location...

    Posted Tue December 06, 2022 08:32 AM
    Hello everyone 

    I am using CPLEX and the cplex callable library (C api) to solve several instances of a linear program. Note that I do not have much experience using C and the CPLEX callable library. Most of the instances are effectively solved. However, when I try to solve a few instances, it appears the following error, just when executing the instruction "CPXlpopt".


    The translation of the error says:

    Exception thrown
    Exception thrown in en 0x00007FF86C2F3154 (cplex2210.dll) in BigMCOL.exe: 0xC0000005: Access violation when writing in location 0x00000156A7E36E80.

    I do not really know what is the source of the error. In fact, the solver is able to produce the iteration log of the problem as you can see in the attached file. Also, I can produce the .LP file, which you can also find in the attachments. Note that I can successfully solve the .LP file without the CPLEX callable library. 

    I appreciate any help or suggestions you can provide me regarding this error.

    Regards,
    Mario

    Regards,
    Mario

    ------------------------------
    MARIO JOSÉ BASALLO TRIANA
    ------------------------------

    #DecisionOptimization