I do not know how to solve this integer programming problem. $$\min_{w_{i,j}} \sum_{i=1}^{N}\sum_{j=1,j \neq i}^{N} w_{i,j}$$ $$s.t. \sum_{j=1,j \neq i}^{N} w_{i,j} \geq L, \forall i \in \left[ N \right]$$ $$w_{i,j} = w_{j,i}, \forall i \in \left[ N \right], j \in \left[ N \right], i \neq j$$ $$w_{i,j} \in \left[ S \right], \forall i \in \left[ N \right], j \in \left[ N \right], i \neq j$$
$L$ is a positive integer, $\left[ N \right]$ is a set of positive integers and $\left[ N \right] = \left\{ 1, 2, \dots, N \right\}$, $\left[ S \right]$ is a set of non-negative integers and $\left[ S \right] = \left\{0, 1, \dots, N \right\}$
You can use an integer programming package (e.g.
mipsin python) to solve the problem, first you need to define the variables in order to express the objective function and the constraints and define the parameter ($N, L$) values:The above solution to be interpreted as $w_{1,9}=2$, $w_{2,7}=2$, $w_{3,5}=w_{3,8}=1$ etc.