I try to convert a quadratic constraint to a linear one:
$$
w_j = \sum w_\text{j,i} \\
w_\text{j,i} = \frac{w_j}{D} \times u \\
w_j,D,u \in \mathbb{N} \\
$$
The values for $w_j$ and $D$ are constant and does not change.
In fact, I try to divide the value of $w_j$ to pieces, defined by $D$. For example: $D = 4$ and $w_j = 100$ with $w_\text{j,0},w_\text{j,1} \in {0,25,50,100}$.
At first: Is there a way to express such a case with linear constraints?
At second: Is there a rule how to convert quadratic to linear constraints?