Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling for n-choose-k and linear equality #13

Open
bertiqwerty opened this issue Oct 23, 2021 · 3 comments
Open

Sampling for n-choose-k and linear equality #13

bertiqwerty opened this issue Oct 23, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@bertiqwerty
Copy link
Member

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 bertiqwerty added the enhancement New feature or request label Oct 23, 2021
@DavidWalz
Copy link
Member

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

@Osburg
Copy link
Contributor

Osburg commented Mar 16, 2022

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
?

@DavidWalz
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants