Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::sat::ObjectiveDefinition Struct Reference

Detailed Description

Definition at line 38 of file cp_model_mapping.h.

#include <cp_model_mapping.h>

Public Member Functions

double ScaleIntegerObjective (IntegerValue value) const
double ScaleObjective (double value) const

Public Attributes

double scaling_factor = 1.0
double offset = 0.0
IntegerVariable objective_var = kNoIntegerVariable
std::vector< IntegerVariable > vars
std::vector< IntegerValue > coeffs
absl::flat_hash_set< IntegerVariable > objective_impacting_variables

Member Function Documentation

◆ ScaleIntegerObjective()

double operations_research::sat::ObjectiveDefinition::ScaleIntegerObjective ( IntegerValue value) const
inline

Definition at line 55 of file cp_model_mapping.h.

◆ ScaleObjective()

double operations_research::sat::ObjectiveDefinition::ScaleObjective ( double value) const
inline

Definition at line 59 of file cp_model_mapping.h.

Member Data Documentation

◆ coeffs

std::vector<IntegerValue> operations_research::sat::ObjectiveDefinition::coeffs

Definition at line 48 of file cp_model_mapping.h.

◆ objective_impacting_variables

absl::flat_hash_set<IntegerVariable> operations_research::sat::ObjectiveDefinition::objective_impacting_variables

Definition at line 53 of file cp_model_mapping.h.

◆ objective_var

IntegerVariable operations_research::sat::ObjectiveDefinition::objective_var = kNoIntegerVariable

Definition at line 41 of file cp_model_mapping.h.

◆ offset

double operations_research::sat::ObjectiveDefinition::offset = 0.0

Definition at line 40 of file cp_model_mapping.h.

◆ scaling_factor

double operations_research::sat::ObjectiveDefinition::scaling_factor = 1.0

Definition at line 39 of file cp_model_mapping.h.

◆ vars

std::vector<IntegerVariable> operations_research::sat::ObjectiveDefinition::vars

Definition at line 47 of file cp_model_mapping.h.


The documentation for this struct was generated from the following file: