I have to satisfy a combinatorial constraint in $y$ with $y_i \in \{0,1\}$ and $i = \{1,2,..,n\}$,
$\sum_i y_i \leq k$.
The process of obtaining y is as follows
- Sample $x \in [0,1]^n$
- Project x onto half space $\sum_i x_i \leq c_1$. (based on $L_1$ norm)
- Threshold, $y_i = 1$, if $x_i \geq c_2$
Both $c_1$ and $c_2$ can be controlled. What should I choose $c_1$ and $c_2$ as?
I started with the simplest choice of $c_1$ as k and considered the case when n is quite large, and I get $c_2$ as k/(k+1) when k is divided into k+1 bins is the largest value that does not satisfy constraint. Is it correct? any mathematical way of showing it?
Edit : corrected hyperplane to halfspace in 2.