Watson Studio

 View Only
  • 1.  How to load .MPS file to run in Watson Machine learning

    Posted Tue February 18, 2020 11:49 AM
    I have been loading MPS file to dropsolve directly to run linear optimization and pull result from there. However, since IBM migrate dropsolve to Watson Machine learning, I found it is really hard for me to do the same way I was used to. Does anyone know how to do it (not through API)

    Thanks.

    ------------------------------
    Qiang Chen
    ------------------------------


  • 2.  RE: How to load .MPS file to run in Watson Machine learning

    Posted Thu September 03, 2020 09:01 AM
    Hi,

    have you had a look at https://medium.com/@AlainChabrier/solve-lp-models-with-do-for-wml-5299da95c5ad ?

    ------------------------------
    ALEX FLEISCHER
    ------------------------------



  • 3.  RE: How to load .MPS file to run in Watson Machine learning

    Posted Mon October 26, 2020 09:54 AM

    Do we know if what Qiang is asking is supported? Based on the documentation it should be but I haven't seen any actual examples.

    I've seen various examples using csv/lp files but haven't managed to get an .mps file working.

    I've also asked on StackOverflow and proved some sample code.

    https://stackoverflow.com/questions/64524702/how-solve-mps-file-using-the-latest-ibm-waston-studio-apis



    ------------------------------
    Georgios Vovos
    ------------------------------



  • 4.  RE: How to load .MPS file to run in Watson Machine learning

    Posted Thu November 12, 2020 04:12 PM

    Thanks @ALEX FLEISCHER

    I can ​solve an OLP model(.mod) using sample code found in the link you posted:

    (https://github.com/IBMDecisionOptimization/oplrunonwml)

    but I still don't know how to solve the .mps file.

    Based on this link Model input and output data file formats - IBM Cloud Pak for Data you support the below

    cplex

    .lp
    .mps
    .sav
    .feasibility
    .prm

    cpo

    .cpo

    opl

    .mod
    .dat
    .oplproject
    .xls
    .json
    .csv

    docplex

    .py
    *.* (input data)


    I've seen many examples for the last two (opl/docplex) but not for the first one (cplex-mps)



    ------------------------------
    Georgios Vovos
    ------------------------------



  • 5.  RE: How to load .MPS file to run in Watson Machine learning

    Posted Fri November 13, 2020 06:48 AM
    Hi

    I recommend

    https://medium.com/@AlainChabrier/solve-lp-problems-from-do-experiments-9afd4d53aaf5

    by Alain Chabrier

    regards

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



  • 6.  RE: How to load .MPS file to run in Watson Machine learning

    Posted Fri November 13, 2020 06:18 PM

    @ALEX FLEISCHER

    Thank you for showing me that I can't use google correctly!

    The ex​ample you posted works perfectly for .mps files too.

    My problem was that I was trying to use an empty "model.tar.gz" file.

    On the linked example, the .lp file is included in the archive, once I did the same for my .mps file ,it worked too.

    Thank you very much for you help!



    ------------------------------
    Georgios Vovos
    ------------------------------