Let $v_1, v_2, \dots, v_N, u$ are vectors in $\mathbb{R}^n$, each defined by $n$ integer numbers. Typically, $n<N$, and each vector has only few (one to four) non-zero coefficients. Additionally, each of $v_1, v_2, \dots, v_N$ has a cost, an integer number $c_i > 0$. Need to find a subset $v_{i_1}, \dots, v_{i_k}$ such that
- $u$ lies in the linear space spanned on $v_{i_1}, \dots, v_{i_k}$, and
- The cost of the subset $\Sigma_{j=1}^kc_{i_j}$ is minimal.
Any ideas, including incomplete and/or non-optimal solutions, are very appreciated. Thanks in advance.