Formulating Linear Constraints on a Matrix

In summary: Anyway, that's the answer!In summary, the conversation discusses a problem with formulating linear constraints for a symmetric matrix \mathbf{P}. The constraints are easy to formulate using a vector, but representing \mathbf{P} as a matrix becomes difficult. The original poster discovers that the answer lies in algebraic dependence and solving for \mathbf{P} over the cone of PSD matrices using SDP. The solution involves setting p_{12}= p and p_{33}= -1- 2p, with all other values given.
  • #1
JeSuisConf
34
1
Hi everyone. I have this problem which I am trying to formulate. Basically, I have the following linear constraints:

[tex]
p_{11} = 2
[/tex]
[tex]
p_{22} = 5
[/tex]
[tex]
p_{33}+2p_{12}=-1
[/tex]
[tex]
2p_{13} =2
[/tex]
[tex]
2p_{23} = 0
[/tex]

And these are for the symmetric matrix

[tex]
\mathbf{P} =
\left( \begin{array}{ccc}
p_{11} & p_{12} & p_{13} \\
p_{12} & p_{22} & p_{23} \\
p_{13} & p_{23} & p_{33} \end{array} \right)
[/tex]

I would like to formulate a way to represent the linear constraints and [tex]\mathbf{P}[/tex] as a matrix at the same time.

I can do this using [tex]\mathbf{P}[/tex] or a vector of the entries of [tex]\mathbf{P}[/tex]. The linear constraints are easy if I use a vector ([tex]\mathbf{Ap}=\mathbf{b}[/tex], but then I don't know how to represent [tex]\mathbf{P}[/tex] as a matrix from the vector! And if I leave [tex]\mathbf{P}[/tex] as a matrix, all the constraints are easy to formulate except [tex]p_{33}+2p_{12}=-1[/tex]. Can anyone help me figure this out?

If anyone's curious, I'm trying to solve for [tex]\mathbf{P}[/tex] over the cone of PSD matrices using SDP. But I am entirely new to SDP and I'm scratching my head formulating this problem. I feel stupid right now :'(
 
Physics news on Phys.org
  • #2
I answered my own question... and the answer has to do with algebraic dependence in the structure of the problem, and how SDP problems are formulated. I just thought I was missing something obvious ... hence my convoluted search.
 
  • #3
Well, I'm glad you answered it. It looks simple to me: I you let [itex]p_{12}= p[/itex] then [itex]p_{33}= -1- 2p[/itex] and all other values are essentially given:
[tex]\begin{pmatrix}2 & p & 1 \\ p & 5 & 0 \\1 & 0 & -1-2p\end{pmatrix}[/tex]
 
  • #4
HallsofIvy said:
Well, I'm glad you answered it. It looks simple to me: I you let [itex]p_{12}= p[/itex] then [itex]p_{33}= -1- 2p[/itex] and all other values are essentially given:
[tex]\begin{pmatrix}2 & p & 1 \\ p & 5 & 0 \\1 & 0 & -1-2p\end{pmatrix}[/tex]

That's exactly what came out in the end. I'm not sure why I didn't see it at first... I always seem to manage to do things in the most roundabout way.
 
  • #5


Hello there,

I can understand your frustration with formulating linear constraints on a matrix. It can be a daunting task, especially when working with SDP and PSD matrices. However, with some guidance and understanding, I am confident that you will be able to solve this problem.

Firstly, let's take a look at the linear constraints you have provided. These constraints can be represented in matrix form as follows:

\mathbf{A}\mathbf{P} = \mathbf{b}

where \mathbf{A} is a matrix with the coefficients of the linear constraints and \mathbf{b} is a vector with the values on the right-hand side of the constraints. This is a common way to represent linear constraints in matrix form.

Now, to incorporate the symmetric matrix \mathbf{P} into this formulation, we can use a vector of the entries of \mathbf{P} as you have mentioned. This can be represented as:

\mathbf{p} = \begin{pmatrix}p_{11} \\ p_{12} \\ p_{13} \\ p_{22} \\ p_{23} \\ p_{33}\end{pmatrix}

Using this vector, we can then represent \mathbf{P} as a matrix using the following formula:

\mathbf{P} = \begin{pmatrix}p_{11} & p_{12} & p_{13} \\ p_{12} & p_{22} & p_{23} \\ p_{13} & p_{23} & p_{33}\end{pmatrix}

Now, let's take a look at the constraint p_{33}+2p_{12}=-1. We can rewrite this constraint as:

p_{33}+2p_{12}+0p_{13}+0p_{22}+0p_{23}+0p_{33} = -1

This can then be incorporated into the vector \mathbf{b} as the last entry. So, our final formulation would be:

\mathbf{A}\mathbf{p} = \mathbf{b}

where \mathbf{A} is a 6x6 matrix and \mathbf{b} is a 6x1 vector.

I hope this helps you in formulating your problem. Please don't feel stupid, as SDP can be a complex topic and it
 

FAQ: Formulating Linear Constraints on a Matrix

What is the purpose of formulating linear constraints on a matrix?

The purpose of formulating linear constraints on a matrix is to model real-world problems and constraints in a mathematical form. This allows for the use of linear programming techniques to find an optimal solution to the problem.

How do you represent linear constraints on a matrix?

Linear constraints on a matrix can be represented using a system of linear equations, where the variables represent the values on the matrix and the coefficients represent the constraints. These equations can then be graphed on a coordinate plane to visually represent the constraints.

What are the types of linear constraints that can be formulated on a matrix?

There are three main types of linear constraints: equality constraints, inequality constraints, and range constraints. Equality constraints set an exact value for a variable, while inequality constraints set a minimum or maximum value. Range constraints specify a range of values that a variable can take on.

How are linear constraints used in optimization problems?

Linear constraints are used in optimization problems to limit the possible solutions and find the best possible solution within those constraints. By formulating constraints on a matrix, the problem can be solved using linear programming techniques to find the optimal values for the variables.

What are some common applications of linear constraints on a matrix?

Linear constraints on a matrix are commonly used in fields such as operations research, economics, and engineering. They can be applied to various problems such as resource allocation, production planning, and transportation optimization, among others.

Back
Top