Decision Optimization

 View Only
  • 1.  No MATLAB Interface for 20.1?

    Posted Mon December 28, 2020 10:41 AM

    I don't see MATLAB listed under

    IBM ILOG CPLEX Optimization Studio 20.1.0.0
    Detailed System Requirements

    Prerequisitises -->  Development Tools

    Is it correct that there is no MATLAB interface for 20.1.0.0? If so, are there any plans to add it at a later date, or is 12.10 the end of the line for MATLAB interface for CPLEX?



    ------------------------------
    Mark Stone
    ------------------------------

    #DecisionOptimization


  • 2.  RE: No MATLAB Interface for 20.1?

    Posted Tue December 29, 2020 02:56 AM

    Hi

    Is it correct that there is no MATLAB interface for 20.1.0.0?

    ==> Yes

    If so, are there any plans to add it at a later date, or is 12.10 the end of the line for MATLAB interface for CPLEX?

    ==> Do not hesitate to log a wish in Aha to have this back : https://ibm-data-and-ai.ideas.aha.io/?project=CPLEX

    (Database connectivity in OPL was removed in CPLEX 12.7 and is back in 20.1 thanks to many Aha votes)

    In the meantime, many options:

    •  keep using CPLEX 12.10
    • call OPL from Matlab :

                     https://github.com/AlexFleischerParis/howtowithopl/blob/master/callfrommatlab.M

                     https://github.com/mjbays/MATLAB-OPL-Interface

    Or you can also

    • use the MATLAB connector from CPLEX 12.10 and export the mps file with

    The parameter ExportModel (or exportmodel) takes a file name as an argument.
    The default is the empty string (""). For example, opt =
    cplexoptimset('exportmodel', 'myModel.lp'); can be used to set the name of
    the exported model.

    then call CPLEX from Matlab through a command line call

    regards



    ------------------------------
    [Alex] [Fleischer]
    [EMEA CPLEX Optimization Technical Sales]
    [IBM]
    ------------------------------



  • 3.  RE: No MATLAB Interface for 20.1?

    Posted Wed February 17, 2021 02:17 PM
    Hi,
    it is very unfortunate that IBM have decided not to release a matlab interface to CPLEX 20.1.0.0. Many existing projects relied on the matlab interface to cplex and such a big change could have been communicated more clearly and with more advance notice so an alternative could be prepared.

    Regarding your suggested alternatives, I have some comments and questions...
    • keep using CPLEX 12.10
      • Will this work with renewal of (academic) licenses? e.g. If a person renews an optimisation studio licence, can they elect to download CPLEX 12.10 and keep using that? For how long?
    • call OPL from Matlab :

                     https://github.com/AlexFleischerParis/howtowithopl/blob/master/callfrommatlab.M

                     https://github.com/mjbays/MATLAB-OPL-Interface
    With a matlab-OPL-cplex interface, is there any way to avoid writing and reading flat files? There would be a major performance drop if not.

    With a matlab-MPS-cplex interface, is there any way to avoid writing and reading flat files?

    Tomlab's matlab interface is excellent, however there do not seem to be free academic licenses for it that last longer than a few weeks. 

    • use the MATLAB connector from CPLEX 12.10 and export the mps file with

    Again, same limitation of MPS as above?

    People who use matlab are going to increasingly move toward gurobi and other solvers that continue to develop their matlab interfaces. 

    If IBM are not willing to maintain the matlab interface to CPLEX, why not make it one of your open source projects and facilitate the community to maintain it?
    https://www.ibm.com/opensource/

    Regards,

    Ronan

    ------------------------------
    Ronan Fleming
    ------------------------------



  • 4.  RE: No MATLAB Interface for 20.1?

    Posted Thu February 18, 2021 03:43 AM
    Hi,

    if you need anything for free as I said at What is free with CPLEX ?  you may log a wish in Aha

    And by the way there is only a wish for that : https://ibm-data-and-ai.ideas.aha.io/ideas/CPLEX-I-112

    At https://www.ibm.com/support/lifecycle/search?q=cplex you can see how long each version is supported so you can get older versions.

    So " they elect to download CPLEX 12.10 and keep using that? For how long? " ==> 5 years at least

    regards






    ------------------------------
    [Alex] [Fleischer]
    [EMEA CPLEX Optimization Technical Sales]
    [IBM]
    ------------------------------



  • 5.  RE: No MATLAB Interface for 20.1?

    Posted Fri August 05, 2022 09:02 AM
    Hi @ALEX FLEISCHER,

    I had the same issue with calling Cplex from Matlab and tried using your "oplrun" code, but it does not work and its status (in Matlab) is 10. Any specific version of the software is needed for the code to work?

    Your help is appreciated in advance.


    ------------------------------
    Zeinab Vosooghi
    ------------------------------