Home / Computer science / Set packing / Computation
Objective
Define the objective function
\begin{equation*} y = \sum_{i = 1}^{m} x_i \end{equation*}and the objective value
\begin{equation*} y^* = \max y. \end{equation*}y = sum(x[i] for i in range(m))
model.maximize(y)