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