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
linear-programming
add a comment |
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
linear-programming
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
add a comment |
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
linear-programming
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
linear-programming
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
add a comment |
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
add a comment |
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.
$$
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
$$
add a comment |
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.
$$
add a comment |
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.
$$
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.
$$
answered Nov 21 at 16:51
A.Γ.
21.7k22455
21.7k22455
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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