Let, $\mathcal{C}=\{1,2,\cdots,C\}$, $\mathcal{U}=\{1,2,\cdots,U\}$
$\mathcal{S}_u$ is a subset of $\mathcal{C}$ with $u\in \mathcal{U}$
$d_{u,c}$ is a binary variable with $u=1,2,\cdots,U$ and $c=1,2,\cdots,C$
Now, with $u=1$, if $d_{1,2}=1$ and $d_{1,5}=1$, then we want to enforce that both $2\in\mathcal{S}_u$ and $5\in\mathcal{S}_1$
Similarly,
with $u=3$, if $d_{3,2}=1$ and $d_{3,7}=1$, then we want to enforce that both $2\in\mathcal{S}_3$ and $7\in\mathcal{S}_3$
What is an efficient way of generalising this constraint for any $u\in \mathcal{U}$?