Decision Optimization

 View Only
  • 1.  Matlab Tutorial unable to use CPLEX 12.7.1

    Posted Fri June 12, 2020 03:35 AM
    I have been trying to use this phenomapping tutorial, which uses CPLEX optimization studio. The tutorial was originally run with CPLEX Optimization studio 12.7.1, so I have been trying to use that version ( I previously tried to run with with the 12.10 version, and while the script did run, the solver failed to return any solutions which I did not understand). The tutorial asks me to paste the path to the CPLEX solver, however when I run the tutorial script, I get this error. 
    I am using a Mac with OS Catalina 10.15.5 and MATLAB_R2020A. I'm not sure whether the issue is simply incompatibility of 12.7.1 and I should focus on using 12.10 to run the tutorial, or if there's a way I can get CPLEX to work with this script. I appreciate any suggestions anyone has! Thanks.


    ------------------------------
    Raina Thomas
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Matlab Tutorial unable to use CPLEX 12.7.1

    Posted Fri June 12, 2020 03:49 AM
    CPLEX 12.7.1 was released in April 2017, and I wouldn't expect it to work with MATLAB R2020a.  Actually, not even the latest CPLEX release, 12.10, is supported on that MATLAB version, which was released after CPLEX.  For details of what third-party software supported with CPLEX, please refer to https://www.ibm.com/support/pages/node/324909.

    This being said, you can try CPLEX 12.10 with MATLAB R2020a and see what that gives. I would recommend, though, to first try the examples delivered with CPLEX. Their default location is
    /Applications/CPLEX_Studio1210/cplex/examples/src/matlab​
    and you will find the documentation for the MATLAB connector (how to set it up -- this may be the issue you have, and description of the examples) at https://www.ibm.com/support/knowledgecenter/SSSA5P_12.10.0/ilog.odms.cplex.help/CPLEX/MATLAB/topics/cplex_matlab_overview.html.

    ------------------------------
    Xavier
    ------------------------------



  • 3.  RE: Matlab Tutorial unable to use CPLEX 12.7.1

    Posted Mon June 15, 2020 02:56 AM
    Instead of moving to an ancient version of CPLEX and try to combine that with an unsupported version of matlab it is probably easier to figure out why the solver did not find a solution when the code worked. Can you provide more details about this scenario? Maybe export the model to a SAV file and attach it here?

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