Tool to get dual problem from any linear optimization problem (.lp)How can I remember the rules for taking the dual of a linear program (LP)?Guidelines for Linear Optimization approaches?How to take the dual of a conic optimization problem?Correct way to get a dual extreme ray for an infeasible LP in CPLEX / C++Recovering primal optimal solutions from dual sub gradient ascent using ergodic primal sequencesHow to relate dual values of valid inequality to the dual values of the original problem?State-of-the-art algorithms for solving linear programsDuality in mixed integer linear programsBlack-box optimization with linear programming?

Warning with deprecated style option

Understanding of big-O massively improved when I began thinking of orders as sets. How to apply the same approach to big-Theta?

In Excel, is there a shortcut to hide a wide range of columns without mouse-dragging?

What happens when a photon "dies"?

How did 36-bit computers format ARPANET packets?

Should I invest ~18k being 19 years old?

Importing a Google Sheet including blank cells (default is ragged array)

How would I measure the Carbon Dioxide content in Coca Cola over a period of time?

Corridor seats on the TGV — why? Are seat reservations not always mandatory?

Limit number of matches of find command

Why didn't classical music use drums?

"Government transplant" been tried? At what scale, and what were the results?

Can you suck magic away from a wizard?

Java OOP Temperature Converter

A story where a name is to be guessed

Calculate this integral over the real line, seem hard, except that the answer is just 0 somehow

How would sword design change if the aim was to cause as much immediate bleeding as possible?

How are the Van der Waals constants a and b related to each other?

Lock screen if I leave my seat?

What game has this black main menu?

Would it have been possible to re-fuel the planes in the air?

an adjective for a person who is so lazy that he is willing to lie

Should I sign a NDA that holds me liable for legal fees even if I am in the right?

How to be ready for The Rise of Skywalker?



Tool to get dual problem from any linear optimization problem (.lp)


How can I remember the rules for taking the dual of a linear program (LP)?Guidelines for Linear Optimization approaches?How to take the dual of a conic optimization problem?Correct way to get a dual extreme ray for an infeasible LP in CPLEX / C++Recovering primal optimal solutions from dual sub gradient ascent using ergodic primal sequencesHow to relate dual values of valid inequality to the dual values of the original problem?State-of-the-art algorithms for solving linear programsDuality in mixed integer linear programsBlack-box optimization with linear programming?













17















$begingroup$


Is there a tool that reads any linear optimization problem (for example an .lp or .mps file), converts it to the dual problem and prints the dual problem?










share|improve this question











$endgroup$



















    17















    $begingroup$


    Is there a tool that reads any linear optimization problem (for example an .lp or .mps file), converts it to the dual problem and prints the dual problem?










    share|improve this question











    $endgroup$

















      17













      17









      17


      1



      $begingroup$


      Is there a tool that reads any linear optimization problem (for example an .lp or .mps file), converts it to the dual problem and prints the dual problem?










      share|improve this question











      $endgroup$




      Is there a tool that reads any linear optimization problem (for example an .lp or .mps file), converts it to the dual problem and prints the dual problem?







      linear-programming duality






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 2 at 17:23









      Laurent Perron

      5982 silver badges10 bronze badges




      5982 silver badges10 bronze badges










      asked Oct 2 at 13:58









      JaBeJaBe

      3718 bronze badges




      3718 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          8







          +50










          $begingroup$

          I recommend having a look at the most recent developments around JuMP. They have developed two interesting packages this year:




          • MathOptFormat.jl, that allows to import/export optimization problem in MPS, LP, CBF, etc...


          • Dualization.jl, that allows to dualize automatically any optimization problem in conic form

          You can find here a Julia script that takes as input a MPS file and output the dual problem in a LP file.



          However, I get some problems with MathOptFormat, as this package is not yet able to import LP files... Still a work in progress I guess!






          share|improve this answer










          $endgroup$













          • $begingroup$
            For me, the Julia script does not work (see my comment in the Gist).
            $endgroup$
            – JaBe
            Oct 14 at 17:40


















          6

















          $begingroup$

          The link includes an online converter from primal to dual linear programs. The downside is you need to input all the coefficients and variables into the pre-defined form on the webpage.






          share|improve this answer










          $endgroup$









          • 3




            $begingroup$
            Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
            $endgroup$
            – Dipayan Banerjee
            Oct 2 at 19:51






          • 1




            $begingroup$
            The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
            $endgroup$
            – JaBe
            Oct 5 at 12:14












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "700"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2for.stackexchange.com%2fquestions%2f2718%2ftool-to-get-dual-problem-from-any-linear-optimization-problem-lp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8







          +50










          $begingroup$

          I recommend having a look at the most recent developments around JuMP. They have developed two interesting packages this year:




          • MathOptFormat.jl, that allows to import/export optimization problem in MPS, LP, CBF, etc...


          • Dualization.jl, that allows to dualize automatically any optimization problem in conic form

          You can find here a Julia script that takes as input a MPS file and output the dual problem in a LP file.



          However, I get some problems with MathOptFormat, as this package is not yet able to import LP files... Still a work in progress I guess!






          share|improve this answer










          $endgroup$













          • $begingroup$
            For me, the Julia script does not work (see my comment in the Gist).
            $endgroup$
            – JaBe
            Oct 14 at 17:40















          8







          +50










          $begingroup$

          I recommend having a look at the most recent developments around JuMP. They have developed two interesting packages this year:




          • MathOptFormat.jl, that allows to import/export optimization problem in MPS, LP, CBF, etc...


          • Dualization.jl, that allows to dualize automatically any optimization problem in conic form

          You can find here a Julia script that takes as input a MPS file and output the dual problem in a LP file.



          However, I get some problems with MathOptFormat, as this package is not yet able to import LP files... Still a work in progress I guess!






          share|improve this answer










          $endgroup$













          • $begingroup$
            For me, the Julia script does not work (see my comment in the Gist).
            $endgroup$
            – JaBe
            Oct 14 at 17:40













          8







          +50








          8







          +50




          8






          +50



          $begingroup$

          I recommend having a look at the most recent developments around JuMP. They have developed two interesting packages this year:




          • MathOptFormat.jl, that allows to import/export optimization problem in MPS, LP, CBF, etc...


          • Dualization.jl, that allows to dualize automatically any optimization problem in conic form

          You can find here a Julia script that takes as input a MPS file and output the dual problem in a LP file.



          However, I get some problems with MathOptFormat, as this package is not yet able to import LP files... Still a work in progress I guess!






          share|improve this answer










          $endgroup$



          I recommend having a look at the most recent developments around JuMP. They have developed two interesting packages this year:




          • MathOptFormat.jl, that allows to import/export optimization problem in MPS, LP, CBF, etc...


          • Dualization.jl, that allows to dualize automatically any optimization problem in conic form

          You can find here a Julia script that takes as input a MPS file and output the dual problem in a LP file.



          However, I get some problems with MathOptFormat, as this package is not yet able to import LP files... Still a work in progress I guess!







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Oct 10 at 16:23









          fpacaudfpacaud

          7611 silver badge5 bronze badges




          7611 silver badge5 bronze badges














          • $begingroup$
            For me, the Julia script does not work (see my comment in the Gist).
            $endgroup$
            – JaBe
            Oct 14 at 17:40
















          • $begingroup$
            For me, the Julia script does not work (see my comment in the Gist).
            $endgroup$
            – JaBe
            Oct 14 at 17:40















          $begingroup$
          For me, the Julia script does not work (see my comment in the Gist).
          $endgroup$
          – JaBe
          Oct 14 at 17:40




          $begingroup$
          For me, the Julia script does not work (see my comment in the Gist).
          $endgroup$
          – JaBe
          Oct 14 at 17:40











          6

















          $begingroup$

          The link includes an online converter from primal to dual linear programs. The downside is you need to input all the coefficients and variables into the pre-defined form on the webpage.






          share|improve this answer










          $endgroup$









          • 3




            $begingroup$
            Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
            $endgroup$
            – Dipayan Banerjee
            Oct 2 at 19:51






          • 1




            $begingroup$
            The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
            $endgroup$
            – JaBe
            Oct 5 at 12:14















          6

















          $begingroup$

          The link includes an online converter from primal to dual linear programs. The downside is you need to input all the coefficients and variables into the pre-defined form on the webpage.






          share|improve this answer










          $endgroup$









          • 3




            $begingroup$
            Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
            $endgroup$
            – Dipayan Banerjee
            Oct 2 at 19:51






          • 1




            $begingroup$
            The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
            $endgroup$
            – JaBe
            Oct 5 at 12:14













          6















          6











          6







          $begingroup$

          The link includes an online converter from primal to dual linear programs. The downside is you need to input all the coefficients and variables into the pre-defined form on the webpage.






          share|improve this answer










          $endgroup$



          The link includes an online converter from primal to dual linear programs. The downside is you need to input all the coefficients and variables into the pre-defined form on the webpage.







          share|improve this answer













          share|improve this answer




          share|improve this answer










          answered Oct 2 at 14:15









          Oguz ToragayOguz Toragay

          5,7901 gold badge3 silver badges33 bronze badges




          5,7901 gold badge3 silver badges33 bronze badges










          • 3




            $begingroup$
            Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
            $endgroup$
            – Dipayan Banerjee
            Oct 2 at 19:51






          • 1




            $begingroup$
            The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
            $endgroup$
            – JaBe
            Oct 5 at 12:14












          • 3




            $begingroup$
            Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
            $endgroup$
            – Dipayan Banerjee
            Oct 2 at 19:51






          • 1




            $begingroup$
            The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
            $endgroup$
            – JaBe
            Oct 5 at 12:14







          3




          3




          $begingroup$
          Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
          $endgroup$
          – Dipayan Banerjee
          Oct 2 at 19:51




          $begingroup$
          Here is another similar calculator: mathstools.com/section/main/… - but the one you posted seems much easier to use
          $endgroup$
          – Dipayan Banerjee
          Oct 2 at 19:51




          1




          1




          $begingroup$
          The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
          $endgroup$
          – JaBe
          Oct 5 at 12:14




          $begingroup$
          The link from the answer also accepts the problem pasted in a text format. Which text format is this? It's not lp or mps.
          $endgroup$
          – JaBe
          Oct 5 at 12:14


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Operations Research Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2for.stackexchange.com%2fquestions%2f2718%2ftool-to-get-dual-problem-from-any-linear-optimization-problem-lp%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          xrandr — how to find the correct RGB full spectrum output command for my systemHow to get second display to work alongside primary display?Unable to change the refresh rate to 60hz with xrandrUbuntu 16.04 external monitors black screen “Could not set the configuration for CRTC”Ubuntu 18.04 Monitor not recognizedXubuntu 18.04 does not detect external monitors connected via USB-C hubLaptop running Ubuntu 18.04 and Nvidia GPU does not detect HDMI display

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region