What is the dual for the following LP











up vote
0
down vote

favorite












Minimize $c^Tx$



subject to, $b_l leq Ax leq b_u \ lleq x leq u$



where $A$ is an $m times n$ matrix.



My approach was to separate each inequality into two.
So,



$b_l leq Ax\
Axleq b_u\
lleq x\
xleq u$



And the dual objective would then be,
Maximize $b_l^Ty+b_u^Ty+l^Ty+u^Ty$. I was not able to figure out the constraints










share|cite|improve this question






















  • Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
    – A.Γ.
    Nov 21 at 12:13










  • @A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
    – Who cares
    Nov 21 at 12:23















up vote
0
down vote

favorite












Minimize $c^Tx$



subject to, $b_l leq Ax leq b_u \ lleq x leq u$



where $A$ is an $m times n$ matrix.



My approach was to separate each inequality into two.
So,



$b_l leq Ax\
Axleq b_u\
lleq x\
xleq u$



And the dual objective would then be,
Maximize $b_l^Ty+b_u^Ty+l^Ty+u^Ty$. I was not able to figure out the constraints










share|cite|improve this question






















  • Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
    – A.Γ.
    Nov 21 at 12:13










  • @A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
    – Who cares
    Nov 21 at 12:23













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Minimize $c^Tx$



subject to, $b_l leq Ax leq b_u \ lleq x leq u$



where $A$ is an $m times n$ matrix.



My approach was to separate each inequality into two.
So,



$b_l leq Ax\
Axleq b_u\
lleq x\
xleq u$



And the dual objective would then be,
Maximize $b_l^Ty+b_u^Ty+l^Ty+u^Ty$. I was not able to figure out the constraints










share|cite|improve this question













Minimize $c^Tx$



subject to, $b_l leq Ax leq b_u \ lleq x leq u$



where $A$ is an $m times n$ matrix.



My approach was to separate each inequality into two.
So,



$b_l leq Ax\
Axleq b_u\
lleq x\
xleq u$



And the dual objective would then be,
Maximize $b_l^Ty+b_u^Ty+l^Ty+u^Ty$. I was not able to figure out the constraints







linear-programming






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 21 at 11:27









Who cares

14513




14513












  • Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
    – A.Γ.
    Nov 21 at 12:13










  • @A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
    – Who cares
    Nov 21 at 12:23


















  • Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
    – A.Γ.
    Nov 21 at 12:13










  • @A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
    – Who cares
    Nov 21 at 12:23
















Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
– A.Γ.
Nov 21 at 12:13




Rewrite as $min c^Tx$ subject to $Bxle d$, $x$ free.
– A.Γ.
Nov 21 at 12:13












@A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
– Who cares
Nov 21 at 12:23




@A.Γ. I can make $x$ free via $x=x_1-x_2$,$x_1,x_2 geq 0$ but how do I remove the lower bounds?
– Who cares
Nov 21 at 12:23










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










Let $I$ be the identity matrix. Define
$$
B=begin{bmatrix}A\-A\I\-Iend{bmatrix},qquad d=begin{bmatrix}b_l\-b_u\l\-uend{bmatrix}
$$

then all the constraints can be written as $Bxge d$.



Calculate the dual problem to
$$
min c^Txquadtext{subject to }Bxge d.
$$

There are different ways to do it in optimization courses that covers LP, but let's do it via Lagrange duality. The Lagrange function is
$$
L(x,y)=c^Tx+y^T(d-Bx)=d^Ty+(c-B^Ty)^Tx,quad yge 0.
$$

The dual problem is
$$
max_{yge 0}min_x L(x,y).
$$

The inner minimum is easily calculated as
$$
min_x L(x,y)=
begin{cases}
d^Ty & text{ if }c-B^Ty=0,\
-infty & text{ otherwise}.
end{cases}
$$

Now for maximization the part with $-infty$ is not relevant, so we have the dual problem
$$
max d^Tyquadtext{subject to }B^Ty=c, yge 0.
$$






share|cite|improve this answer





















    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3007594%2fwhat-is-the-dual-for-the-following-lp%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    Let $I$ be the identity matrix. Define
    $$
    B=begin{bmatrix}A\-A\I\-Iend{bmatrix},qquad d=begin{bmatrix}b_l\-b_u\l\-uend{bmatrix}
    $$

    then all the constraints can be written as $Bxge d$.



    Calculate the dual problem to
    $$
    min c^Txquadtext{subject to }Bxge d.
    $$

    There are different ways to do it in optimization courses that covers LP, but let's do it via Lagrange duality. The Lagrange function is
    $$
    L(x,y)=c^Tx+y^T(d-Bx)=d^Ty+(c-B^Ty)^Tx,quad yge 0.
    $$

    The dual problem is
    $$
    max_{yge 0}min_x L(x,y).
    $$

    The inner minimum is easily calculated as
    $$
    min_x L(x,y)=
    begin{cases}
    d^Ty & text{ if }c-B^Ty=0,\
    -infty & text{ otherwise}.
    end{cases}
    $$

    Now for maximization the part with $-infty$ is not relevant, so we have the dual problem
    $$
    max d^Tyquadtext{subject to }B^Ty=c, yge 0.
    $$






    share|cite|improve this answer

























      up vote
      2
      down vote



      accepted










      Let $I$ be the identity matrix. Define
      $$
      B=begin{bmatrix}A\-A\I\-Iend{bmatrix},qquad d=begin{bmatrix}b_l\-b_u\l\-uend{bmatrix}
      $$

      then all the constraints can be written as $Bxge d$.



      Calculate the dual problem to
      $$
      min c^Txquadtext{subject to }Bxge d.
      $$

      There are different ways to do it in optimization courses that covers LP, but let's do it via Lagrange duality. The Lagrange function is
      $$
      L(x,y)=c^Tx+y^T(d-Bx)=d^Ty+(c-B^Ty)^Tx,quad yge 0.
      $$

      The dual problem is
      $$
      max_{yge 0}min_x L(x,y).
      $$

      The inner minimum is easily calculated as
      $$
      min_x L(x,y)=
      begin{cases}
      d^Ty & text{ if }c-B^Ty=0,\
      -infty & text{ otherwise}.
      end{cases}
      $$

      Now for maximization the part with $-infty$ is not relevant, so we have the dual problem
      $$
      max d^Tyquadtext{subject to }B^Ty=c, yge 0.
      $$






      share|cite|improve this answer























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        Let $I$ be the identity matrix. Define
        $$
        B=begin{bmatrix}A\-A\I\-Iend{bmatrix},qquad d=begin{bmatrix}b_l\-b_u\l\-uend{bmatrix}
        $$

        then all the constraints can be written as $Bxge d$.



        Calculate the dual problem to
        $$
        min c^Txquadtext{subject to }Bxge d.
        $$

        There are different ways to do it in optimization courses that covers LP, but let's do it via Lagrange duality. The Lagrange function is
        $$
        L(x,y)=c^Tx+y^T(d-Bx)=d^Ty+(c-B^Ty)^Tx,quad yge 0.
        $$

        The dual problem is
        $$
        max_{yge 0}min_x L(x,y).
        $$

        The inner minimum is easily calculated as
        $$
        min_x L(x,y)=
        begin{cases}
        d^Ty & text{ if }c-B^Ty=0,\
        -infty & text{ otherwise}.
        end{cases}
        $$

        Now for maximization the part with $-infty$ is not relevant, so we have the dual problem
        $$
        max d^Tyquadtext{subject to }B^Ty=c, yge 0.
        $$






        share|cite|improve this answer












        Let $I$ be the identity matrix. Define
        $$
        B=begin{bmatrix}A\-A\I\-Iend{bmatrix},qquad d=begin{bmatrix}b_l\-b_u\l\-uend{bmatrix}
        $$

        then all the constraints can be written as $Bxge d$.



        Calculate the dual problem to
        $$
        min c^Txquadtext{subject to }Bxge d.
        $$

        There are different ways to do it in optimization courses that covers LP, but let's do it via Lagrange duality. The Lagrange function is
        $$
        L(x,y)=c^Tx+y^T(d-Bx)=d^Ty+(c-B^Ty)^Tx,quad yge 0.
        $$

        The dual problem is
        $$
        max_{yge 0}min_x L(x,y).
        $$

        The inner minimum is easily calculated as
        $$
        min_x L(x,y)=
        begin{cases}
        d^Ty & text{ if }c-B^Ty=0,\
        -infty & text{ otherwise}.
        end{cases}
        $$

        Now for maximization the part with $-infty$ is not relevant, so we have the dual problem
        $$
        max d^Tyquadtext{subject to }B^Ty=c, yge 0.
        $$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 21 at 16:51









        A.Γ.

        21.7k22455




        21.7k22455






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2fmath.stackexchange.com%2fquestions%2f3007594%2fwhat-is-the-dual-for-the-following-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

            Plaza Victoria

            Puebla de Zaragoza

            Musa