Suppose $A \in \mathbb{R}^{n \times n}$ is a positive semi-definite matrix. Can we solve the following for $x \in \mathbb{R}^n$?
\begin{equation} \begin{split} A(x-a) + \lambda I_{\bullet i}&=0\\ I_{\bullet i}^Tx&=0,\,\,\,\text{or }(x_i=0) \end{split} \end{equation} where $\lambda \in \mathbb{R}$, $a \in \mathbb{R}^n$, $I_{\bullet i}$ is the i-th column of the identity matrix, and $i$ is a fixed and given index. I did the following but cannot go further.
$x^TA(x-a) + \lambda x^TI_{\bullet i}=0$
$x^TA(x-a)=0$. Hence, $x- a \in N(A)$ or $x\in a+ N(A)$ and $\lambda=0$.
Also, $(x-a)^TAx=0$. Hence, $x \in N(A)$ and $Aa = \lambda I_{\bullet i}$ (I have no idea how to find $\lambda$ in this case).
Is there any other solutions for $x$ and consequently for $\lambda$?
Assuming that $a,i$ are given quantities (but not $\lambda$), the problem has a solution when
For any $b\in N(A)$ such that $e_i^T(y_0+b)\ne0$, let $\lambda:=-e_i^Ta/e_i^T(y_0+b)$, so that $e_i^T(a+\lambda y_0+\lambda b)=0$, then the solution can be checked to be $$x=a+\lambda(y_0+b)$$ since $A(x-a)=\lambda Ay_0=-\lambda e_i$, and $e_i^Tx=e_i^T(a+\lambda y_0+\lambda b)=0$
[If $e_i^Ta=0$ then the solutions are $x=a+b$ for any $b\in N(A)$, since $(x-a)^TA(x-a)=-\lambda(x-a)^Te_i=0$ so $x-a\in N(A)$.]
If $e_i\notin\mathrm{im}(A)$, then the equation $Ay=-\lambda e_i$ can only be satisfied if $\lambda=0$ and $Ay=0$. Thus $x=a+y$ for some $y\in N(A)$. The other condition $e_i^Tx=0$ is then satisfied iff there is a non-empty intersection $(a+N(A))\cap e_i^\perp\ne\emptyset$. This is equivalent to $N(A)$ not being a subspace of $e_i^\perp$, i.e., $e_i\notin N(A)^\perp$.