They are called semi-continuous variables. Some solvers support them directly, but they can also be formulated using additional binary variables:
3*d <= x <= 1000*d
d binary
In any case, you get the MIQP model (mixed integer quadratic programming). Solutions like Gurobi and Cplex support this and have R interfaces.
source
share