In the study of a certain pure mathematical problem (related to infinite-dimensional Lie algebras) I found myself in a situation where it would be very desirable to be able to solve an integer programming problem, where one of the constraints is a divisibility assumption. Namely, for the variables $x_i\in\mathbb{Z}_{\geqslant0}$ this constraint is of the form $$ Q(x_1,\ldots,x_n)\quad \text{divides}\quad L(x_1,\ldots,x_n),$$ where $L$ is linear and $Q$ is quadratic. (for completeness: the function to minimize is simply $\sum x_i$, and other constraints are $P(x_i)>0$ for some quadratic $P$ and $(x_1,\ldots,x_n)$ is not an integer linear combination of some given integer vectors)
I don't reckon there is an out-of-the-box solution for this, so I wonder if someone has considered any other problems of this sort, say, where there is a constraint of the form "$L_1(x_i)$ divides $L_2(x_i)$" for some linear $L_1$ and $L_2$?