Let $A\in\mathbb{R}^{n\times n}$ be a stable matrix (i.e., the eigenvalues of $A$ have negative real parts). Consider the following optimization problem in $X \in \mathbb{R}^{n \times n}$
$$\begin{array}{ll} \text{maximize} & \mbox{tr} \left(P X \right)\\ \text{subject to} & \mbox{tr}(X) = 1\\ & X \succeq 0\end{array}$$
where $X \succeq 0$ denotes that $X$ is positive semidefinite, and $P$ is the solution of the following Lyapunov equation $$ AP+PA^\top =-X. $$
Question: Does the above-formulated problem admit a closed-form solution?