Let $\Lambda_1,\Lambda_2$ be $n\times n$ diagonal matrices with diagonal elements positive and decreasing (i.e., $\Lambda_{j,11}>\Lambda_{j,22}\ldots>\Lambda_{j,nn}>0$ for $j\in\{1,2\}$). Let $\{a_i\}$ be another decreasing sequence of positive numbers. I want to find the orthonormal matrix $U$ that maximizes $$ \sum_{i=1}^d a_i\cdot \mathrm{eigval}_i(\Lambda_1 U^\top \Lambda_2 U \Lambda_1), $$ where $\mathrm{eigval}_i(\cdot)$ denotes the $i$-th largest eigenvalue of a matrix.
I think the optima should satisfy $U^2 = I$. This would be true if we restricted $U$ to be a permutation matrix, or if $a_i\equiv 1$ held, or if we were doing a greedy optimization of the sum (first choosing the first column $U_{:,1}$ while leaving the other columns to be zero, then choosing $U_{:,2}$ in the orthogonal complement of $\mathrm{span}\{U_{:,1}\}$, etc). But the general form of the problem makes e.g. using the first-order condition difficult. Any help will be appreciated.