OR-Tools  8.2
ObjectiveDefinition

Detailed Description

Definition at line 38 of file cp_model_loader.h.

Public Member Functions

double ScaleIntegerObjective (IntegerValue 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 ScaleIntegerObjective ( IntegerValue  value) const
inline

Definition at line 55 of file cp_model_loader.h.

Member Data Documentation

◆ coeffs

std::vector<IntegerValue> coeffs

Definition at line 48 of file cp_model_loader.h.

◆ objective_impacting_variables

absl::flat_hash_set<IntegerVariable> objective_impacting_variables

Definition at line 53 of file cp_model_loader.h.

◆ objective_var

IntegerVariable objective_var = kNoIntegerVariable

Definition at line 41 of file cp_model_loader.h.

◆ offset

double offset = 0.0

Definition at line 40 of file cp_model_loader.h.

◆ scaling_factor

double scaling_factor = 1.0

Definition at line 39 of file cp_model_loader.h.

◆ vars

std::vector<IntegerVariable> vars

Definition at line 47 of file cp_model_loader.h.


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