The problem I'm dealing with has the following form. Let $X$ be some uncountable set, and $Y$ be some finite set. Suppose $f: X \times Y \to [0,1]$, and given $\mathcal{H} \subseteq Y^X$, I'm looking for some $P$, a distribution with support on $\mathcal{H}$, such that
$$ \forall x, \ f(x, y) = \int_{h\in \mathcal{H}: \ h(x) = y}dP(h), $$
assuming it exists. In the case that $X$ is finite, this boils down to a linear system, but given my background, I'm totally at a loss in approaching the general case. It seems to me that this is something of a infinite dimensional feasibility problem. Maybe some optimization literature review is in order? Any other literature I should be looking at?