We would like to model a constraint for an assignment problem that dictates that either assign a specific subset of nodes $I\subset\mathcal{I}$ to a specific subset of nodes $J\subset\mathcal{J}$, or don't assign them at all.
In other words, for variable $x_{ij}\in\{0,1\}, \forall i\in\mathcal{I},j\in\mathcal{J}$, either $x_{ij}=1, \forall i\in I, j \in J$ or $x_{ij}=0$.
Is there a way to model this?