Decision Optimization

 View Only
  • 1.  CPLEX 12.8 version (on Linux) and Python version

    Posted Thu February 09, 2023 05:48 AM
    Hello everyone!!!

    I have installed CPLEX 12.8 on the Linux system. I set Python API (Python version: 3.7) with CPLEX (CPLEX version: 12.8). After that I tried to run one example. The formulation is printing by using print(mod.export_as_lp_string()) command. But unfortunately, It is not being solved and giving error:

     docplex.mp.utils.DOcplexException: Cannot solve model: no CPLEX runtime found.

    Please help me to fix this issue.




  • 2.  RE: CPLEX 12.8 version (on Linux) and Python version

    Posted Thu February 09, 2023 11:13 AM

    Dear Mohammad,

    Did you follow the steps in:

     https://www.ibm.com/docs/en/icos/12.8.0.0?topic=tutorial-starting-cplex-python-api

    ?

    Cheers,



    ------------------------------
    Renaud Dumeur
    ------------------------------



  • 3.  RE: CPLEX 12.8 version (on Linux) and Python version

    Posted Fri February 10, 2023 11:15 PM
    Dear   Renaud Dumeur,

    I followed that. Even then it is showing the same error.

    Thanks,
    Samiullah.






  • 4.  RE: CPLEX 12.8 version (on Linux) and Python version

    Posted Sun February 12, 2023 06:16 AM

    Dear Mohammad,

    Are you using a Mac? If so, maybe this thread 

    https://github.com/IBMDecisionOptimization/docplex-examples/issues/19

    may help you.

    Otherwise, please precise your machine/OS configuration.

    Cheers,



    ------------------------------
    Renaud Dumeur
    ------------------------------



  • 5.  RE: CPLEX 12.8 version (on Linux) and Python version

    Posted Fri February 17, 2023 04:19 AM

    Dear Renaud Dumeur,

    Now we can log in IBM account. I downloaded a newer version. And it is working fine. Thanks for your support

    Samiullah



    ------------------------------
    MOHAMMAD SAMIULLAH
    ------------------------------