Decision Optimization

Decision Optimization

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

 View Only
  • 1.  How can I upgrade CPlex 12.6.1 to 20.X.X in a .NET project ?

    Posted Fri May 09, 2025 02:05 PM

    I have a project using CPlex 12.6.1 and I don't know how to upgrade it to a 20.X.X.

    Could someone share a list of tasks with some baby steps to do it ?

    Any help ?



    ------------------------------
    Paulo Santos
    ------------------------------


  • 2.  RE: How can I upgrade CPlex 12.6.1 to 20.X.X in a .NET project ?
    Best Answer

    Posted Wed May 14, 2025 10:10 AM

    Here are the steps for using Cplex 20.X.X in a .NET project.

    1. Install Cplex 20.1.
    2. Create a new .NET Framework project.
    3. Change the platform to x64.
    4. Add reference to ILOG.CPLEX.dll and ILOG.Concert.dll to your .net project. Assuming Cplex is installed at "C:\Program Files\IBM\ILOG\CPLEX_Studio201", the two dlls should be available at "C:\Program Files\IBM\ILOG\CPLEX_Studio201\cplex\bin\x64_win64".

    I hope this answers your question.



    ------------------------------
    Ruchir Santuka
    ------------------------------



  • 3.  RE: How can I upgrade CPlex 12.6.1 to 20.X.X in a .NET project ?

    Posted 22 days ago

    Thank you @Ruchir Santuka



    ------------------------------
    Paulo Santos
    ------------------------------



  • 4.  RE: How can I upgrade CPlex 12.6.1 to 20.X.X in a .NET project ?

    Posted 21 days ago

    Hi,

    Steps to Upgrade CPLEX in .NET:

    Steps to Upgrade CPLEX in .NET:

    1.Download & Install
    Install CPLEX Optimization Studio 20.x.x from IBM's website.

    2.Remove Old DLLs
    In Visual Studio, remove references to:

    ILOG.CPLEX.dll

    ILOG.Concert.dll from version 12.6.1.

    3. Add New References
    Add the 20.x.x DLLs from:

    makefile
    Copy
    Edit
    C:\Program Files\IBM\ILOG\CPLEX_Studio201\cplex\bin\x64_win64\
    C:\Program Files\IBM\ILOG\CPLEX_Studio201\concert\bin\x64_win64\

    4. Update Code (If Needed)

    Adjust for API or method changes.

    Ensure proper object disposal (e.g., cplex.Dispose()).

    5. Set Environment Variables
    Add the new DLL paths to the PATH system environment variable.

    6. Rebuild and Test
    Rebuild your project and validate model behavior.

    Thanks, Regards

    Kamal Hinduja Geneva , Switzerland 



    ------------------------------
    Kamal Hinduja
    ------------------------------