finding optimal solution of a min network flow problem
$begingroup$
We have the following the min cost network flow problem. Notice that the arcs $(1,2), (2,3), (4,2), (3,6), (5,6)$ give a feasible basis. We easily find a feasible solution:
$$ (x_{12}, x_{23}, x_{36}, x_{42}, x_{56}) = (-6,-1,-1,-3,-1) $$
where we have assumed $b_i < 0$ is supply . When trying to find dual variables, we obtain
begin{align*}
y_1-y_2 = c_{12} = 2 \
y_2-y_3 = c_{23} = 3 \
y_4-y_2 = c_{42} = 5 \
y_3-y_6= c_{36} = 3 \
y_5-y_6 = c_{56} = 7 \
end{align*}
My question is, in solving this system, can we assume $y_1$ or $y_5$ to be $0$ since we can for a root node from them?
linear-programming
$endgroup$
add a comment |
$begingroup$
We have the following the min cost network flow problem. Notice that the arcs $(1,2), (2,3), (4,2), (3,6), (5,6)$ give a feasible basis. We easily find a feasible solution:
$$ (x_{12}, x_{23}, x_{36}, x_{42}, x_{56}) = (-6,-1,-1,-3,-1) $$
where we have assumed $b_i < 0$ is supply . When trying to find dual variables, we obtain
begin{align*}
y_1-y_2 = c_{12} = 2 \
y_2-y_3 = c_{23} = 3 \
y_4-y_2 = c_{42} = 5 \
y_3-y_6= c_{36} = 3 \
y_5-y_6 = c_{56} = 7 \
end{align*}
My question is, in solving this system, can we assume $y_1$ or $y_5$ to be $0$ since we can for a root node from them?
linear-programming
$endgroup$
add a comment |
$begingroup$
We have the following the min cost network flow problem. Notice that the arcs $(1,2), (2,3), (4,2), (3,6), (5,6)$ give a feasible basis. We easily find a feasible solution:
$$ (x_{12}, x_{23}, x_{36}, x_{42}, x_{56}) = (-6,-1,-1,-3,-1) $$
where we have assumed $b_i < 0$ is supply . When trying to find dual variables, we obtain
begin{align*}
y_1-y_2 = c_{12} = 2 \
y_2-y_3 = c_{23} = 3 \
y_4-y_2 = c_{42} = 5 \
y_3-y_6= c_{36} = 3 \
y_5-y_6 = c_{56} = 7 \
end{align*}
My question is, in solving this system, can we assume $y_1$ or $y_5$ to be $0$ since we can for a root node from them?
linear-programming
$endgroup$
We have the following the min cost network flow problem. Notice that the arcs $(1,2), (2,3), (4,2), (3,6), (5,6)$ give a feasible basis. We easily find a feasible solution:
$$ (x_{12}, x_{23}, x_{36}, x_{42}, x_{56}) = (-6,-1,-1,-3,-1) $$
where we have assumed $b_i < 0$ is supply . When trying to find dual variables, we obtain
begin{align*}
y_1-y_2 = c_{12} = 2 \
y_2-y_3 = c_{23} = 3 \
y_4-y_2 = c_{42} = 5 \
y_3-y_6= c_{36} = 3 \
y_5-y_6 = c_{56} = 7 \
end{align*}
My question is, in solving this system, can we assume $y_1$ or $y_5$ to be $0$ since we can for a root node from them?
linear-programming
linear-programming
asked Dec 10 '18 at 3:23
Jimmy SabaterJimmy Sabater
2,649321
2,649321
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Yup, that's fine, the notion of a root node is arbitrary, just grab the node that you want it to be the root node, shake it and with the help of gravity, it becomes the root node.
To see why we can do that in terms of the algorithm. What really matters is the difference, as only the difference of the dual variables/ potential values are used in computing the optimality conditons. We have $n$ potential values and $n-1$ arcs connecting them to form the tree, fixing a value would fully determined the rest. Fixing it differently would adjust two solutions by a constant.
$endgroup$
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
|
show 3 more comments
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%2f3033397%2ffinding-optimal-solution-of-a-min-network-flow-problem%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
$begingroup$
Yup, that's fine, the notion of a root node is arbitrary, just grab the node that you want it to be the root node, shake it and with the help of gravity, it becomes the root node.
To see why we can do that in terms of the algorithm. What really matters is the difference, as only the difference of the dual variables/ potential values are used in computing the optimality conditons. We have $n$ potential values and $n-1$ arcs connecting them to form the tree, fixing a value would fully determined the rest. Fixing it differently would adjust two solutions by a constant.
$endgroup$
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
|
show 3 more comments
$begingroup$
Yup, that's fine, the notion of a root node is arbitrary, just grab the node that you want it to be the root node, shake it and with the help of gravity, it becomes the root node.
To see why we can do that in terms of the algorithm. What really matters is the difference, as only the difference of the dual variables/ potential values are used in computing the optimality conditons. We have $n$ potential values and $n-1$ arcs connecting them to form the tree, fixing a value would fully determined the rest. Fixing it differently would adjust two solutions by a constant.
$endgroup$
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
|
show 3 more comments
$begingroup$
Yup, that's fine, the notion of a root node is arbitrary, just grab the node that you want it to be the root node, shake it and with the help of gravity, it becomes the root node.
To see why we can do that in terms of the algorithm. What really matters is the difference, as only the difference of the dual variables/ potential values are used in computing the optimality conditons. We have $n$ potential values and $n-1$ arcs connecting them to form the tree, fixing a value would fully determined the rest. Fixing it differently would adjust two solutions by a constant.
$endgroup$
Yup, that's fine, the notion of a root node is arbitrary, just grab the node that you want it to be the root node, shake it and with the help of gravity, it becomes the root node.
To see why we can do that in terms of the algorithm. What really matters is the difference, as only the difference of the dual variables/ potential values are used in computing the optimality conditons. We have $n$ potential values and $n-1$ arcs connecting them to form the tree, fixing a value would fully determined the rest. Fixing it differently would adjust two solutions by a constant.
edited Dec 10 '18 at 4:23
answered Dec 10 '18 at 3:47
Siong Thye GohSiong Thye Goh
101k1466117
101k1466117
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
|
show 3 more comments
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
Question: Can we find another Feasible tree ? or the one I found is unique /
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 4:04
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
I could have taken path connecting node $2$ and $5$ right?
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 4:16
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
How can I see that without doing the computations?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:07
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
I let node $2$, get $9$ units, then it passes the extra $1$ unit to node $5$. Then from node $5$, we pass $3$ units to node $6$. I did it by observation. To get a tree, pass $0$ units through one of the arc avoiding forming a cycle.
$endgroup$
– Siong Thye Goh
Dec 10 '18 at 8:10
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
$begingroup$
but the big-M method can be used to find it as well , correct ?
$endgroup$
– Jimmy Sabater
Dec 10 '18 at 8:12
|
show 3 more comments
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.
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%2f3033397%2ffinding-optimal-solution-of-a-min-network-flow-problem%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