Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Create models with FORTRAN and CPLEX

    Posted Wed July 28, 2021 11:20 AM

    Since FORTRAN is one of the TOP20 programming languages in the TIOBE index (https://www.tiobe.com/tiobe-index/), I am looking to create and manipulate mixed-integer linear programming models with FORTRAN. I have not found a library similar to Concert, Pyomo, or JuMP for FORTRAN.

    Is it possible to create models using FORTRAN and CPLEX?

    Kind regards,

    Bruno






    #DecisionOptimization
    #Support
    #SupportMigration


  • 2.  RE: Create models with FORTRAN and CPLEX
    Best Answer

    Posted Thu July 29, 2021 03:46 PM

    CPLEX doesn't support FORTRAN directly. However, FORTRAN can usually invoke functions in native libraries (DLLs, .so, etc). So some users used this feature to invoke CPLEX Callable Library (the C API). For further details, you need to check with the documentation or the community of your FORTRAN compiler.

    Another way is to let your FORTRAN codes write a math model that CPLEX can read. Then invoke CPLEX interactive optimizer to solve the model and write out the information you need. Lastly, your FORTRAN codes parse the output and get the solution. (File formats CPLEX support https://www.ibm.com/docs/en/icos/20.1.0?topic=cplex-file-formats-supported-by)

    If you still prefer submitting a wish, you can submit it to https://ibm-data-and-ai.ideas.ibm.com/?project=CPLEX






    #DecisionOptimization
    #Support
    #SupportMigration