(apologies for the n00b question)
Let's say we have a vector of length $n$, with to-be-determined values: $a_1, a_2, ...,a_n$.
And we have information that partial sums of these elements are equal to something, say: $$ a_1 + a_2 + ... + a_{k_1} = A_{1} \\ a_{k_1+1} + a_{k_1+2} + ... + a_n = B_1 \\ a_1 + a_2 + ... + a_{k_2} = A_2 \\ a_{k_2+1} + a_{k_2+2} + ... + a_n = B_2 \\ ...\\ a_1 + a_2 + ... + a_{k_m} = A_m \\ a_{k_m+1} + a_{k_m+2} + ... + a_n = B_m \\ $$
Where $m<<n$: so we have much fewer such $m$ equations/constraints than the $n$ unknown values $a_i$.
If we want to know which combination of $a_i$ values can solve these equations, there are probably infinite many such combinations (or 0). So I'd like to add two constraints to this:
- $a_i>0$ for any i.
- I want the solution with $a_i$ values that are as "similar" to each other as possible. For example, keeping $\sum_{i=1}^n (a_i - \bar a)^2$ as small as possible (L2 norm). Where $\bar a = \sum \frac{a_i}{n}$.
How is such optimization problem called? (would also love to know how to solve it, but I assume that once I have the name, I can find solvers).