17#include "absl/container/flat_hash_map.h"
34 bool is_maximize)
const {
50 if (!objective_terms.
raw_terms().empty()) {
#define CHECK_EQ(val1, val2)
double linear_objective_coefficient(VariableId variable) const
void set_linear_objective_coefficient(VariableId variable, double value)
double objective_offset() const
void set_is_maximize(bool is_maximize)
const absl::flat_hash_map< VariableId, double > & linear_objective() const
void set_objective_offset(double value)
IndexedModel * model() const
const absl::flat_hash_map< VariableId, double > & raw_terms() const
void Add(const LinearExpression &objective_terms) const
LinearExpression AsLinearExpression() const
void Maximize(const LinearExpression &objective) const
void Minimize(const LinearExpression &objective) const
void SetObjective(const LinearExpression &objective, bool is_maximize) const
constexpr absl::string_view kObjectsFromOtherIndexedModel
Collection of objects used to extend the Constraint Solver library.