I've got a quite simple problem: Given $k\in\mathbb N$ and $a_1,\ldots,a_k\ge0$, I want to find $w_1,\ldots,w_k\ge0$ with $\sum_{i=1}^kw_i=1$ minimizing $\sum_{i=1}^ka_iw_i$.
Are we able to solve this? I'm not necessarily searching for a unique minimizer, but at least to find any one (if necessarily, numerically).
Think of $w_i$ as weights of different materials and $a_i$ as their costs per unit weight. You want to buy $1$ unit of total weight at least possible cost. Put in those terms, the solution is obvious: go for the cheapest material, i.e. take $w_j = 1$ where $a_j$ is the least of $a_1, \ldots, a_k$, and $w_i = 0$ otherwise.