I am trying to find a way to solve the folowing Linear Problem. I want to determine whether a point lies within a subspace of an n-dimensional space without calculating the subspace. The formulation of the Linear Problem is the following:
Suppose that we are in the 300-dimensional space of real numbers. Assume P is the point for which I want to determine whether it lies within or without the a subspace . Assume also that X={x[1], .... x[m]} is the set of points that form this subspace (with each x[i] a 300-dimensional vector). Consider A:=(x[1] x[2] ... x[m]) to be the 300*m matrix with each of the points x[i] as its columns. The problem is now stated as follows:
minimize {x} such that:
A * x = P
x^T * [1] = 1
x[i]>=0, for all i
If the above problem has a solution, then the point P lies within the subspace. Otherwise, it does not. Is this correct? Please also find the following example to better understand my question:
Suppose that I am in the 2-dimensional Real Numbers space and I have three points: (1,3) , (2,1) , (3,2). I want to determine whether the point (2,2) lies within the space created by the three points above. This is reduced to the following linear problem:
minimize {x} such that:
$$\begin{bmatrix}1&3&2\\3&2&1\end{bmatrix}*\begin{bmatrix}x1\\x2\\x3\end{bmatrix} = \begin{bmatrix}2\\2\end{bmatrix}$$
$$\begin{bmatrix}x1&x2&x3\end{bmatrix} * \begin{bmatrix}1\\1\\1\end{bmatrix} = (1,1,1)$$
$$x >= 0$$
If x can be minimized (i.e. I do not have infinitely many solutions) and all of its dimensions are bigger than 0, then indeed (2,2) lies within my subspace. I the above approach correct or not?
P.S. Sorry for the bad editing, but I am not experienced in this site. Moreover, I do not want to calculate the subspace, since I am going to implement this in Python and computing the subspace is very computationally expensive.
$\ge$for $\ge$ and$\{\}$for ${}$. – Shaun Dec 07 '17 at 12:30@to reply to other users so they will be notified about it. – user202729 Dec 07 '17 at 14:00