mopti icon indicating copy to clipboard operation
mopti copied to clipboard

Sampling for n-choose-k and linear equality

Open bertiqwerty opened this issue 4 years ago • 3 comments

Currently, it is not possible to randomly sample from problems that have n-choose-k-constraints and linear equality constraints on the same variables.

bertiqwerty avatar Oct 23 '21 12:10 bertiqwerty

This is a hard one and might require solving an optimization problem.

DavidWalz avatar Nov 12 '21 10:11 DavidWalz

I have an idea how one could maybe do this if the dimension of the problem is low enough. One could determine the points as described in the sketch below and then sample from the set we computed. Inside each affine subspace one could just randomly draw coefficients for basis vectors, one would have to think about how to determine the probability for each subspace if they do not all have the same dimension... Do you think this could make sense nchoosek ?

Osburg avatar Mar 16 '22 09:03 Osburg

From our discussion yesterday. While I think this is a feasible approach for small number of parameters, I'm afraid it would get too slow quickly. E.g for 10-choose-4 we have 210 subspace projections to iterate over and sample from. Additionally we would need to consider relative volumes for each of these subspaces to approach a uniform sampling.

DavidWalz avatar Mar 18 '22 10:03 DavidWalz