Rudy’s OBTF Rudolf Adamkovič

Home / Computer science / Set packing / Computation


Constraints

Every part is covered by some supplier,

\begin{equation*} \forall j \sum_{i = 1}^{m} a_{ij} x_i \leq 1. \end{equation*}
for j in range(n):
    model.add(sum(A[i, j] * x[i] for i in range(m)) <= 1)

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.