Flow Network - Linear Optimization

In summary, the student is stuck trying to solve a Linear Algebra problem that he does not understand. He is not sure how to get started and is looking for help. The problem is a network of water pipes and the student starts with a matrix to solve for the solution. The problem asks for six inequalities and the student does not see how to solve for them. Next, the student is asked to find the flow between two nodes and this is where he is stuck. He is not sure how to go forward and has not been taught how to solve for these inequalities. He is looking for help online but has not found anything helpful. Finally, he mentions that he may
  • #1
snozzla
9
0

Homework Statement


I am doing an assignment in my Linear Algebra class. But I don't know how I will go about solving this problem.

So the problem is a network of water pipes. I start with a matrix and I get the solution to the system from the RREF matrix. All the flow directions are set, so the variables(x1,x2,x3,x4,x5,x6) cannot be negative because I cannot have "negative flow".

The problem text says that since all the x-variables have to be non negative I should get 6 inequalities (x1 bigger than or equal to 0) and (x6 bigger than or equal to 0)
but I don't see how?

I also have to minimize flow between two nodes, how do you go forward doing that?

What method gets me from matrix system of equations to inequalities?
Nothing about this in my book and I have spent countless of hours on the net, and still I can't figure this out.

Homework Equations



The RREF matrix:

1 0 0 0 -1 -1 -20
0 1 0 0 1 1 50
0 0 1 0 0 1 40
0 0 0 1 1 0 10
0 0 0 0 0 0 0

The Attempt at a Solution



I get:

x1= -20 + x5 + x6
x2 = 50 - x5 -x6
x3 = 40 - x6
x4 = 10 - x5
x5 = free variable
x6 = free variable

No inequalities here..
 
Physics news on Phys.org
  • #2
snozzla said:

Homework Statement


I am doing an assignment in my Linear Algebra class. But I don't know how I will go about solving this problem.

So the problem is a network of water pipes. I start with a matrix and I get the solution to the system from the RREF matrix. All the flow directions are set, so the variables(x1,x2,x3,x4,x5,x6) cannot be negative because I cannot have "negative flow".

The problem text says that since all the x-variables have to be non negative I should get 6 inequalities (x1 bigger than or equal to 0) and (x6 bigger than or equal to 0)
but I don't see how?

I also have to minimize flow between two nodes, how do you go forward doing that?

What method gets me from matrix system of equations to inequalities?
Nothing about this in my book and I have spent countless of hours on the net, and still I can't figure this out.

Homework Equations



The RREF matrix:

1 0 0 0 -1 -1 -20
0 1 0 0 1 1 50
0 0 1 0 0 1 40
0 0 0 1 1 0 10
0 0 0 0 0 0 0

The Attempt at a Solution



I get:

x1= -20 + x5 + x6
x2 = 50 - x5 -x6
x3 = 40 - x6
x4 = 10 - x5
x5 = free variable
x6 = free variable

No inequalities here..

Imagine submitting this problem to a computer package for solving. The computer does not "know" what x1, x2,... are, and does not "know" they cannot be < 0. You need to ensure that the computer does not give you a solution with some xi < 0. In problems of this type, non-negativity constraints are *crucial*: the set of physically feasible points (x1,x2,...,x6) is a convex polyhedron, but if you drop the non-negativity constraints it is a subspace. Geometrically, these are very different.

RGV
 
  • #3
That constraint typically isn't entered into the matrix for LP, the typical LP Min problem goes:

Minimize [itex] \overline{c}^T \overline{x} [/itex]

Subject to [itex] \overline{A} \overline{x} \geq \overline{b} [/itex]

[itex]x _1 ... x_n \geq 0 [/itex]

Have you tried constructing the Dual of the problem?

Also which two nodes are you trying to minimize flow between?
 
  • #4
Here is the pipe flow network.

[PLAIN]http://img36.imageshack.us/img36/8287/pipes.png

After I have found the 6 inequalities, the assignment asks me to write them as inequalities for x5,x6 or x5 + x6.
Then to minimize flow between D and E.

I have to use Linear Programming to find the inequalities? We have only had 2 lectures and nothing about LP so far, only some matrices and started touching vectors.

Minimize c−Tx−
Subject to A−−x−≥b−
x1...xn≥0
Have you tried constructing the Dual of the problem?


I sadly have no idea what this means. Trying to read up on LP on the net because there is nothing in it in my book.

All constraints can't be that all Xi's ≥ 0? I have understood that they must be equal or greater than 0 because we are not allowed to have 'negative flow', as in in the opposite direction. But there has to be some more? I don't see how the equations I have found will lead me to those 6 inequalities asked for.
 
Last edited by a moderator:
  • #5
Oh, I think you may be overthinking it (and so was I) - you know each inequality, right? (each variable is greater than zero). You know how to express x1 through x4 in terms of x5 and x6, right?

If x1 is greater than zero, and x1 equals -20 + x5 + x6, what does it mean about the quantity -20 + x5 + x6 ?
 
  • #6
x1= -20 + x5 + x6
x2 = 50 - x5 -x6
x3 = 40 - x6
x4 = 10 - x5
x5 = free variable
x6 = free variable

-20 + x5 + x6 ≥ 0
50 - x5 - x6 ≥ 0
40 - x6 ≥ 0
10 - x5 ≥ 0
x5 ≥ 0
x6 ≥ 0

Do you mean this?
 
  • #7
Yes. Those are your six inequalities. Hint: for the next part, it will be helpful to solve each equality for one variable (because usually the easiest way to do an optimization problem with two variables is by graphing the inequalities)
 
  • #8
Thanks, Hopefully I will be able to solve the rest ;)
 

FAQ: Flow Network - Linear Optimization

What is a flow network?

A flow network is a directed graph that represents a system of nodes and edges with a specific flow capacity. It is used to model real-life systems such as transportation networks, communication networks, and supply chains.

What is linear optimization in the context of flow networks?

Linear optimization, also known as linear programming, is a mathematical method used to find the optimal solution to a problem with linear constraints. In the context of flow networks, it is used to find the maximum flow or minimum cost in the network.

What are the basic components of a flow network?

A flow network consists of nodes, edges, a source node, and a sink node. The edges represent the flow of goods, information, or resources between the nodes, while the source node is where the flow originates, and the sink node is where the flow ends.

What is the maximum flow problem in flow networks?

The maximum flow problem is a linear optimization problem that seeks to find the maximum amount of flow that can be sent from the source node to the sink node in a flow network. It is commonly solved using algorithms such as Ford-Fulkerson or Edmonds-Karp.

What is the minimum cost flow problem in flow networks?

The minimum cost flow problem is another linear optimization problem that aims to find the minimum cost to send a certain amount of flow from the source node to the sink node in a flow network. It takes into account the cost of using each edge and can be solved using algorithms such as the minimum cost flow algorithm or the cycle canceling algorithm.

Similar threads

Replies
2
Views
2K
Replies
2
Views
2K
Replies
2
Views
3K
Replies
1
Views
2K
Replies
3
Views
3K
Replies
12
Views
3K
Back
Top