Decision Optimization

 View Only
  • 1.  CPLEX API to Julia availabe?

    Posted Mon July 27, 2020 09:11 AM
    Hi all,

    I just want to know, if there is a CPLEX API for the programming language Julia availabe? I could not find it which suprises me because I think that the language Julia itself is way better than Python, Matlab, GAMS etc. for modelling optimization problems.

    I'd appreciate every comment.

    ------------------------------
    Peter Berit
    ------------------------------

    #DecisionOptimization


  • 2.  RE: CPLEX API to Julia availabe?

    Posted Mon July 27, 2020 09:36 AM
    There is one on github: https://github.com/jump-dev/CPLEX.jl

    ------------------------------
    Daniel Junglas
    ------------------------------



  • 3.  RE: CPLEX API to Julia availabe?

    Posted Tue July 28, 2020 01:12 PM
    Thanks Daniel Junglas for your answer and the link. At least there is an unoffical API that I can use. Just out of curiosity I'd like to ask whetherI there is a specific reason why there is no offical support from IBM for Julia?

    ------------------------------
    Peter Berit
    ------------------------------



  • 4.  RE: CPLEX API to Julia availabe?

    Posted Wed July 29, 2020 01:05 AM
    I am not sure this is indeed "unofficial" API. There are two parties that can support an adapter: either IBM can provide code to adapt to Julia, or the Julia team can support CPLEX.

    As for why IBM does not have an explicit Julia connector: there are many programming languages in the world and IBM only has limited resources. So there is a limit to what IBM can support. Moreover, in many cases it is better to have such a connector written by an expert in the respective language so that the integration feels native in the respective language. The CPLEX team does not have an expert for each and every programming language. So for some languages CPLEX does not provide an API but instead supports the community of the respective languate to create their own API (as you can read on the link that I gave).

    Finally, note that a statement like "Julia itself is way better than ..." is of course very subjective. Other people may think differently.

    After all, with the link I gave you have an API that is officially maintained: the link explicitly says "This wrapper is maintained by the JuMP community". So it is not something that somebody just dropped into the public domain. It is code that is officially maintained, just not by IBM.

    ------------------------------
    Daniel Junglas
    ------------------------------



  • 5.  RE: CPLEX API to Julia availabe?

    Posted Fri July 31, 2020 06:17 AM
    Thanks Daniel Junglas for your comprehensive answer.

    ------------------------------
    Peter Berit
    ------------------------------