Consider column vectors $\boldsymbol{z}_i$, $\quad i=1,\dots,n$.
Each $\boldsymbol{z}_i$ has $j$ elements and can be expressed as $\boldsymbol{z}_i = \begin{bmatrix} \boldsymbol{x}_i \\ \boldsymbol{y}_i \end{bmatrix}$ where by $\boldsymbol{x}_i$ and $\boldsymbol{y}_i$ are the first $k$ and last $j-k$ elements respectively.
Given $\boldsymbol{y}_1,\boldsymbol{y}_2,\dots,\boldsymbol{y}_n$, find $\boldsymbol{x}_1,\boldsymbol{x}_2,\dots,\boldsymbol{x}_n$ such that $\sum_i \| \boldsymbol{z}_i \| $ is minimised and $\sum_i \boldsymbol{x}_i = \boldsymbol{c}$ for some $k$-element column vector $\boldsymbol{c}$.
In words: Minimise the sum of lengths of a set of vectors {$\boldsymbol{z}_i$}. Each vector $\boldsymbol{z}_i$, has some fixed elements $\boldsymbol{y}_i$ and some variable elements $\boldsymbol{x}_i$. Each of the variable elements has a fixed sum across the vectors expressed as $\sum_i \boldsymbol{x}_i = \boldsymbol{c}$. This could also be written $\sum_i x_{i,m} = c_m$ for each element $m$.
The solution is $\boldsymbol{x}_i = \boldsymbol{c} \frac{\| \boldsymbol{y}_i \|}{ \overline{\|\boldsymbol{y}\|} } \quad $ where $\overline{\|\boldsymbol{y}\|}=\sum_i{\|\boldsymbol{y}_i\|}$.
In words: The minimum total length is achieved by apportioning the variable components among the vectors in the ratio of the lengths of the fixed components.
The problem can be solved with Lagrange multipliers.
Question: Is there a simpler solution? Can it be solved with matrix algebra alone? It feels similar to the least-squares regression matrix formula.