Suppose I want to find the tuple of positive real numbers $a_k>0$ that maximize the cost $\min_k a_k$, under the constraints $\sum_k a_k=A$ and $\sum_k a_k^2=B$, for some given $A,B>0$. Assume $k=1,...,n$ for some $n$.
Normally, for this kind of problem, I'd use Lagrange multipliers, defining the Lagrangian $$L = \min_k a_k + \alpha \left(\sum_k a_k-A\right) + \beta \left(\sum_k a_k^2-B\right),$$ and working out the conditions that come out imposing $\nabla L=0$. However, in this case, the $\min$ function defining the cost has a discontinuous derivative, which makes me unsure as to how to proceed.
For concreteness and better clarity, let's work out the $n=2$ case. The problem is here to find the max of $\min(a_1,a_2)$ under the given constraints. I'd then write the Lagrangian function $$L = \min(a_1,a_2) + \alpha \left(\sum_{k=1}^2 a_k-A\right) + \beta \left(\sum_{k=1}^2 a_k^2-B\right) .$$ From this, imposing $\partial_{a_k}L=0$, we'd get the conditions $1+\alpha+2\beta a_1=0$ and $\alpha+2\beta a_2=0$, which can be solved for $\alpha,\beta$. But in this simple case, the constraints also directly impose the conditions $a_1+a_2=A$ and $a_1^2+a_2^2=B$, which can be directly solved to give $$a_1^\pm = \frac{A}{2} \pm \frac12\sqrt{2B-A^2}, \qquad a_2 = A- a_1.$$ It's not hard to see from basic arithmetic considerations that $2B-A^2\ge0$, and thus $0\le a_1^-,a_2^- \le A/2$. Thus we can always write $\min(a_1,a_2) = \frac A2 - \frac12\sqrt{2B-A^2}$, and that's the final answer, as here there's no room for further optimisation (and introducing the Lagrangian is effectively useless).
Let's try to tackle the slightly less boring case with $n=3$. Now the constraints don't automatically determine $a_1,a_2,a_3$. If I try to work out the problem with the simplified Lagrangian $$L=a_1 + \alpha \left(\sum_{k=1}^3 a_k-A\right) + \beta \left(\sum_{k=1}^3 a_k^2-B\right),$$ imposing vanishing gradient I get the three conditions $$\begin{cases}1+ \alpha + 2\beta a_1=0, \\ \alpha + 2\beta a_2 =0, \\ \alpha + 2\beta a_3 =0,\end{cases}$$ which imply $\beta(a_2-a_3)=0$ and $2\beta(a_3-a_1)=2\beta(a_2-a_1)=0$. Thus we must have $\beta\neq0$, which in turn implies $a_2=a_3$, and we go back to a situation where the constraints determine $a_1$, now via $a_1+2a_2=A$ and $a_1^2+2a_2^2=B$, which give $$a_1^\pm = \frac{A}{3} \pm \frac{\sqrt2}{3}\sqrt{3B-A^2}.$$ This is more or less where I hit the problem: I'm tempted to say that, by symmetry, this tells me the stationary points for each individual variable $a_1,a_2,a_3$. But what I actually want is the stationary points (and in particular the max) for their min, and I'm not sure how to convert from one problem into the other using a relatively "elegant" argument (that is to say, possibly without having to work out a plethora of subcases to get there). Furthermore, I think the solutions obtained imposing $\nabla L=0$ (with the $L$ using $\min a_k$ as cost function) only tell me the local stationary points in regions where the cost is smooth (or at least is differentiable), so all regions corresponding to some $a_j=a_k$ are probably left out.