Decision Optimization

 View Only
  • 1.  Matlab / MPS files

    Posted Mon March 05, 2012 08:35 PM

    Originally posted by: Eumpfenbach


    I'll just be direct with my question -- Is there any easy way to get a problem written in MPS format into Matlab? In python I can write problem = cplex.Cplex('problem.mps'), but I can't find anything like this for Matlab.

    Thanks in advance.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Matlab / MPS files

    Posted Mon March 05, 2012 08:37 PM

    Originally posted by: John Cui


    It is easy in MATLAB
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Matlab / MPS files

    Posted Mon March 05, 2012 08:38 PM

    Originally posted by: John Cui


    It is easy in MATLAB if you are using Cplex class.
    cplex=Cplex();
    cplex.readModel('problem.mps');
    cplex.Model % you can get all model information from cplex.Model structure.
    cplex.solve();
    


    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Matlab / MPS files

    Posted Mon March 05, 2012 08:52 PM

    Originally posted by: Eumpfenbach


    That is perfect. I must have just been careless in searching the documentation.

    Thank you very much for the fast answer.
    #CPLEXOptimizers
    #DecisionOptimization