14#ifndef OR_TOOLS_SET_COVER_CAPACITY_INVARIANT_H_
15#define OR_TOOLS_SET_COVER_CAPACITY_INVARIANT_H_
17#include "absl/log/check.h"
28 : model_(m), set_cover_model_(sc) {
29 DCHECK(model_->ComputeFeasibility());
40 bool Select(SubsetIndex subset);
void Clear()
Clears the invariant.
CapacityInvariant(CapacityModel *m, SetCoverModel *sc)
bool Select(SubsetIndex subset)
bool Deselect(SubsetIndex subset)
bool CanSelect(SubsetIndex subset) const
bool CanDeselect(SubsetIndex subset) const
Main class for describing a weighted set-covering problem.
In SWIG mode, we don't want anything besides these top-level includes.
int64_t CapacityWeight
Basic type for weights. For now, the same as Cost for the set covering.
util_intops::StrongVector< SubsetIndex, bool > SubsetBoolVector