Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  Final SIMPLEX Tableau

    Posted Wed November 24, 2010 03:55 PM

    Originally posted by: arains


    I am a mathematical student and I am working in the linear programming field. Some time ago I met CPLEX and, due to it is the most powerful tool in linear programming that I have ever found, I work with it called from matlab. I was wandering to know if there was any way to get the final simplex tableau of a continuous linear problem.

    Thank you very much for your attention!

    Jon
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Final SIMPLEX Tableau

    Posted Wed November 24, 2010 05:01 PM

    Originally posted by: arains


    I must say that I am familiar with CPXbinvarow function but I don’t know how to call it from matlab. Any suggestions?
    Thank you in advance!
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Final SIMPLEX Tableau

    Posted Thu November 25, 2010 12:22 AM

    Originally posted by: John Cui


    Are you using our CPLEX 12's matlab connector or other matlab interface?
    If you are using our CPLEX12's matlab connector, then unfortunately, we don't provide Tableau feature,
    but you can use our python interface, which have tableau feature.

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Final SIMPLEX Tableau

    Posted Thu November 25, 2010 03:19 AM

    Originally posted by: arains


    I'm actually using Cplex12. I am also using your version to connect CPLEX12 with matlab.

    Is there any other version that connects Matlab and CPLEX with the option of getting the Final Simplex Tableau?

    If not, where can I get the version that calls CPLEX from Python, and how does it works?

    Otherwise, will it be possible to create a function in c++ to run CPLEX and call it from matlab to give me back the Final Simplex Tableau?

    Again, thank you very much for your help.
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Final SIMPLEX Tableau

    Posted Thu November 25, 2010 09:40 PM

    Originally posted by: John Cui


    I guess there is not any matlab cplex connector have tableau feature so far.

    After you installed CPLEX12, you will have python interface in your CPLEX directory, can you find it?
    On windows, the directory is C:\ILOG\CPLEX_Studio122\cplex\python\x86_win32
    You can use python interface to get tableau.

    In our matlab interface, you can not add new feature by yourself. But we will discuss adding tableau feature to matlab connector.

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Final SIMPLEX Tableau

    Posted Mon November 29, 2010 08:34 PM

    Originally posted by: SystemAdmin


    As John said, the Python API is included with Windows, Mac, and Linux ports of CPLEX version 12 and above.

    If you have your model stored as a file that CPLEX can read, you can get the simplex tableau using the Python API with code such as this:

    import cplex
    c = cplex.Cplex("problem.lp")
    c.solve()
    print c.solution.advanced.binvarow()
    


    This method can also be used to return only selected rows of the tableau by passing in a list of row indices as an argument.

    Philip Starhill
    CPLEX Research Engineer
    #CPLEXOptimizers
    #DecisionOptimization