Suppose we are given a finite number of points $x_k\in\mathbb R^n$, and we know that $x$ is in the convex hull of these points.
Is there a procedure or algorithm to find a set of coefficients $p_k\ge0$ such that $x=\sum_k p_k x_k$ and $\sum_k p_k=1$?
I'm aware of a related question on mathoverflow asking about how to solve the associated membership problem. The answers there suggest that a possible solution comes from linear programming, but I don't know if this is still the case if we are looking for the coefficients, not just to solve membership. Also, as I'm not well-versed with linear programming, I was hoping for some more detail on how that approach would actually work (if linear programming is indeed what's needed to find the coefficients).


Yes, you can use linear programming to find such $p_k$. For each $k$, let $p_k$ be the desired weight. The objective is arbitrary, so you can minimize the constant $0$ function. The (linear) constraints are: \begin{align} \sum_k x^k_i p_k &= x_i &&\text{for $i \in \{1,\dots,n\}$} \\ \sum_k p_k &= 1 \\ 0 \le p_k &\le 1 &&\text{for all $k$}\\ \end{align}