Let $ \mathbf{b} \in \mathbb{R}_+^n$, $\mathbf{V} \in \mathbb{R}_+^{n \times m}$ with $\mathbf{V} \mathbf{1}_m = \mathbf{1}_n$ where $\mathbf{1}_n$ is the vector of ones of size $n$.
I have the following system of equations where I am trying to find a closed form solution for non-negative $\mathbf{p}$ (i.e., $\mathbf{p} \in \mathbb{R}_+^m$): \begin{align} \mathbf{1}_m = \mathbf{V}^T D^{-1}(\mathbf{V} \mathbf{p}) D(\mathbf{b}) \mathbf{1}_n \end{align}
where $D(\mathbf{x})$ is the diagonal matrix whose $(i, i)^{th}$ entry corresponds to $x_i$ and $D^{-1}(\mathbf{x})$ is the inverse of $D(\mathbf{x})$.
Is there anyway I can find a closed form solution for non-negative $\mathbf{p}$?
$\mathbf{1}_m = \mathbf{V}^T D^{-1}(\mathbf{V} \mathbf{p}) D(\mathbf{b}) \mathbf{1}_n \tag{1}$
$\mathbf{V} \mathbf{1}_m = \mathbf{1}_n \tag{2}$
Multiply $(1)$ by $\mathbf{V}$ on the left:
$\mathbf{V}\mathbf{1}_m = \mathbf{V}\mathbf{V}^T D^{-1}(\mathbf{V} \mathbf{p}) D(\mathbf{b}) \mathbf{1}_n \tag{3}$
From $(2)$
$\mathbf{1}_n = \mathbf{V}\mathbf{V}^T D^{-1}(\mathbf{V} \mathbf{p}) D(\mathbf{b}) \mathbf{1}_n \tag{4}$
$\mathbf{1}_n = M \mathbf{1}_n \tag{5}$
$M$ is not necessarily the identity matrix $I$. e.g. $\begin{bmatrix} \frac1{2} & \frac1{2} & 0\\ \frac1{2} & 0 & \frac1{2}\\ 0 & \frac1{2} & \frac1{2} \end{bmatrix} $
$\mathbf{V}\mathbf{V}^T D^{-1}(\mathbf{V} \mathbf{p}) D(\mathbf{b}) = M\tag{6}$
Multiply the left by $ D(\mathbf{V} \mathbf{p}) (\mathbf{V}\mathbf{V}^T)^{-1}$
$ D(\mathbf{V} \mathbf{p}) (\mathbf{V}\mathbf{V}^T)^{-1} M = D(\mathbf{b})\tag{7}$
$ D(\mathbf{V} \mathbf{p}) = D(\mathbf{b}) M ^{-1} \mathbf{V}\mathbf{V}^T \tag{8}$
Let $U(x)$ be the inverse operation of $D(x)$ i.e. $U(D(x)) = x$. i.e. It takes the diagonal elements and returns a vector of those elements.
$\mathbf{V} \mathbf{p} = U( D(\mathbf{b}) M ^{-1} \mathbf{V}\mathbf{V}^T ) \tag{9}$
Its now a linear equation.
Using the pseudo inverse of $\mathbf{V}$ on the left
$\mathbf{V}^T \mathbf{V} \mathbf{p} = \mathbf{V}^T U(D(\mathbf{b}) M ^{-1} \mathbf{V}\mathbf{V}^T ) \tag{10}$
$\mathbf{p} = (\mathbf{V}^T \mathbf{V})^{-1} \mathbf{V}^T U(D(b) M ^{-1} \mathbf{V}\mathbf{V}^T ) \tag{11}$
This assumes $\mathbf{V}^T\mathbf{V}$ is invertable and equation $(5)$ : $\mathbf{1}_n = M \mathbf{1}_n$ and $D(b) M ^{-1} \mathbf{V}\mathbf{V}^T$ is diagonal.
There could be more than one solution for $M$.
Given $\mathbf{b} \in \mathbb{R}_+^n$ and $\mathbf{V} \in \mathbb{R}_+^{n \times m}$ were are the negatives coming from. The signs of inverses will very likely have negatives.
octave:
To find positive $\mathbf{p}$ will require finding $M$ to satisfy the conditions and produce positive $\mathbf{p}$ values. This depends on the signs produced by the inverses. This looks like a system of inequalities with $\mathbf{p} \geq 0$.
Closed form: a linear system with multiple solutions will have one or more free variables.
Positive solution: linear system solutions don't favour a sign. $(\mathbf{V}^T \mathbf{V})^{-1} \mathbf{V}^T$ is likely to contain many negative values.