Matrix theory question (to do with Linear Programming)

Click For Summary

Homework Help Overview

The discussion revolves around concepts in linear programming, specifically focusing on the relationships between primal and dual problems, matrix properties, and the implications of transposing matrices within the context of inequalities and objective functions.

Discussion Character

  • Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore the derivation of the expression y^t Ax and question the properties of matrix multiplication and transposition. They discuss the implications of these properties on the formulation of objective functions and constraints in linear programming.

Discussion Status

Participants are actively engaging with the material, raising questions about matrix properties and their applications in the context of linear programming. Some guidance has been offered regarding the nature of matrix multiplication and the significance of obtaining scalar results for objective functions.

Contextual Notes

There are ongoing discussions about the definitions and roles of vectors and matrices in the problem setup, as well as the implications of transposing matrices on inequalities. Participants are also considering the dimensionality of the matrices involved and how that affects the formulation of the problem.

flyingpig
Messages
2,574
Reaction score
1

Homework Statement



Suppose we have a maximum LOP P

max z = c^t x

s.t.

Ax \leq b
x \geq 0

and the dual to P is

min w = b^t y

A^t y \geq c

y \leq 0

Then the bounds are

z = c^t x \leq y^t Ax \leq y^t b = b^t y = w

question

Okay where the heck did y^t Ax came from? And what property of matrix are they using for y^t b = b^t y? Neither y or b are numbers, they are points? column vectors?
 
Physics news on Phys.org
flyingpig said:

Homework Statement



Suppose we have a maximum LOP P

max z = c^t x

s.t.

Ax \leq b
x \geq 0

and the dual to P is

min w = b^t y

A^t y \geq c

y \leq 0

Then the bounds are

z = c^t x \leq y^t Ax \leq y^t b = b^t y = w

question

Okay where the heck did y^t Ax came from? And what property of matrix are they using for y^t b = b^t y? Neither y or b are numbers, they are points? column vectors?
y and b are column vectors, or if you like, n x 1 matrices. So ytb can be thought of as a 1 x n matrix multiplying an n x 1 matrix, which produces a 1 x 1 matrix (a number). This is just like a dot product, for which we know that u \cdot v = v \cdot u. In terms of matrix multiplication, you can't change ytb to byt, but you can write it as bty.

From the constraints on the dual problem, you have c <= Aty, so ct <= (Aty)t = ytA.

So ctx <= ytAx, and so on.
 
Is (ytb)t = bt y
 
Mark44 said:
y and b are column vectors, or if you like, n x 1 matrices. So ytb can be thought of as a 1 x n matrix multiplying an n x 1 matrix, which produces a 1 x 1 matrix (a number).

Does that mean for z = ctx, that the argument is the same?

My book defines it this way

c^T = (c_1,...,c_n), x = (x_1,...,x_n)^T

Where it looks like (actually it is lol), c is 1 x n and x is n x 1

Why do we want the final results to be a 1 x 1 matrix? What's wrong with n x n?

Also, one a bit further.

Usually (and this I think might answer myt own question below) we write solutions as y = (y_1,y_2)^t (two elements for now) and by that product and tranpose property we have

((y_1, y_2)^t)^t

For y = (y_1, y_2)^t is 1 x 2 matrix and then tranpose gives back 2 x 1 so that it could multiply out with A

Mark44 said:
Yes. In general, (AB)t = BtAt. This wiki page (http://en.wikipedia.org/wiki/Transpose) lists several properties of matrix transposes.

Yeah I just couldn't see it in the beginning.
 
Last edited:
flyingpig said:
Does that mean for z = ctx, that the argument is the same?
Yes.
flyingpig said:
My book defines it this way

c^T = (c_1,...,c_n), x = (x_1,...,x_n)^T

Where it looks like (actually it is lol), c is 1 x n and x is n x 1

Why do we want the final results to be a 1 x 1 matrix? What's wrong with n x n?
Because we want the objective function z to be a number. In typical problems, the objective function represents the profit that we're trying to maximize, or a cost that we're trying to minimize, or similar.
flyingpig said:
Yeah I just couldn't see it in the beginning.
 
Mark44 said:
Yes.
Because we want the objective function z to be a number. In typical problems, the objective function represents the profit that we're trying to maximize, or a cost that we're trying to minimize, or similar.

So z = [9] for instance, we can't just pull out the 9 from the matrix right? (I remember we could do this for determinants, but we are talking abut a matrix here)
 
Mark44 said:
So ctx <= ytAx, and so on.

Actually I just noticed one thing, quite subtle and important too

When you took the tranpsoe of both sides of the inequality, why wouldn't the inequality sign flip? Like would tranposing the matrix A suddenly make it into a negative matrix...(matrix with negative elements?)?
 
Mark, there is also something wrong with the multiplication.

Suppose A is 3 x 3 and that a D-feasible solution is y = (y_1, y_2, y_3)^t

Then the product y^t Ax cann be defined since yt = \begin{bmatrix}<br /> y_1\\ <br /> y_2\\ <br /> y_3<br /> <br /> \end{bmatrix}
 
  • #10
Both x and y are column vectors, so yt is a row vector.

Suppose x and y are n x 1 (column vectors) and A is n x n. Then ytAx is [1 x n] * [n x n] * [n x 1], which works out to [1 x n] * [n x 1], or 1 x 1. IOW, a scalar, which is exactly what you want.
 
  • #11
flyingpig said:
Actually I just noticed one thing, quite subtle and important too

When you took the tranpsoe of both sides of the inequality, why wouldn't the inequality sign flip?
You're basically comparing two numbers, that just happen to be obtained from the product of several matrices. The transpose of a number is just the number, so nothing weird happens, like changing the direction of the inequality.
flyingpig said:
Like would tranposing the matrix A suddenly make it into a negative matrix...(matrix with negative elements?)?

And when you transpose a matrix it switches the rows and columns. It doesn't turn it into a "negative" matrix, whatever that means.

IOW, At \neq -A, if that's what you're saying.
 
  • #12
Mark44 said:
You're basically comparing two numbers, that just happen to be obtained from the product of several matrices. The transpose of a number is just the number, so nothing weird happens, like changing the direction of the inequality.


And when you transpose a matrix it switches the rows and columns. It doesn't turn it into a "negative" matrix, whatever that means.

IOW, At \neq -A, if that's what you're saying.

Nah I just think that the concept (other than swapping rows and columns) of tranpose is similar to finding an "inverse", not the "inverse of a matrix". I know you have no idea what I just said, it's just something I don't want to believe in, but i have to.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
11
Views
3K
  • · Replies 43 ·
2
Replies
43
Views
5K
Replies
2
Views
2K