Hit-n-Run sampling on a polytope defined by pairwise constraints on the coordinates
Few votes (3) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Let
$$ x=(x_1,\ldots,x_n)\in[0,1]^n $$
and fix \(\varepsilon>0\). I associate to \(x\) a matrix \(M(x)\) defined by
$$ M_{ij}(x)= \begin{cases} -1,& x_i-x_j<-\varepsilon,\\ 0,& |x_i-x_j|\le \varepsilon,\\ +1,& x_i-x_j>\varepsilon. \end{cases} $$
I would like to sample uniformly from the set of points
$$ y=(y_1,\ldots,y_n)\in[0,1]^n $$
that have the same matrix \(M(y)=M(x)\), in other words such that, for every \(i,j\),
$$ \begin{cases} y_i-y_j<-\varepsilon,& \text{if } M_{ij}(x)=-1,\\ |y_i-y_j|\le \varepsilon,& \text{if } M_{ij}(x)=0,\\ y_i-y_j>\varepsilon,& \text{if } M_{ij}(x)=+1. \end{cases} $$
This defines a convex region in \([0,1]^n\), with boundaries of the form
$$ y_i-y_j=\pm\varepsilon. $$
and \(y_i=0\), or \(y_i=1\).
I would like to generate points uniformly from this region.
One possibility is hit-and-run sampling: which was designed for any set defined by the constraints $Ax\leq …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.