OR-Tools  9.6
EnergyEvent

Detailed Description

Definition at line 91 of file scheduling_cuts.cc.

Public Member Functions

 EnergyEvent (int t, SchedulingConstraintHelper *x_helper)
 
bool IsPresent () const
 
IntegerValue GetMinOverlap (IntegerValue start, IntegerValue end) const
 
ABSL_MUST_USE_RESULT bool FillEnergyLp (AffineExpression x_size, const absl::StrongVector< IntegerVariable, double > &lp_values, Model *model)
 
std::string DebugString () const
 

Public Attributes

AffineExpression y_size
 
LiteralIndex presence_literal_index = kNoLiteralIndex
 
LinearExpression linearized_energy
 
double linearized_energy_lp_value = 0.0
 
bool energy_is_quadratic = false
 
double y_spread = 0.0
 
IntegerValue x_start_min
 
IntegerValue x_start_max
 
IntegerValue x_end_min
 
IntegerValue x_end_max
 
IntegerValue x_size_min
 
IntegerValue y_min = IntegerValue(0)
 
IntegerValue y_max = IntegerValue(0)
 
IntegerValue y_size_min
 
IntegerValue energy_min
 
std::vector< LiteralValueValuedecomposed_energy
 

Constructor & Destructor Documentation

◆ EnergyEvent()

EnergyEvent ( int  t,
SchedulingConstraintHelper x_helper 
)
inline

Definition at line 92 of file scheduling_cuts.cc.

Member Function Documentation

◆ DebugString()

std::string DebugString ( ) const
inline

Definition at line 153 of file scheduling_cuts.cc.

◆ FillEnergyLp()

ABSL_MUST_USE_RESULT bool FillEnergyLp ( AffineExpression  x_size,
const absl::StrongVector< IntegerVariable, double > &  lp_values,
Model model 
)
inline

Definition at line 129 of file scheduling_cuts.cc.

◆ GetMinOverlap()

IntegerValue GetMinOverlap ( IntegerValue  start,
IntegerValue  end 
) const
inline

Definition at line 121 of file scheduling_cuts.cc.

◆ IsPresent()

bool IsPresent ( ) const
inline

Definition at line 117 of file scheduling_cuts.cc.

Member Data Documentation

◆ decomposed_energy

std::vector<LiteralValueValue> decomposed_energy
inherited

Definition at line 146 of file scheduling_cuts.h.

◆ energy_is_quadratic

bool energy_is_quadratic = false

Definition at line 108 of file scheduling_cuts.cc.

◆ energy_min

IntegerValue energy_min
inherited

Definition at line 142 of file scheduling_cuts.h.

◆ linearized_energy

LinearExpression linearized_energy

Definition at line 104 of file scheduling_cuts.cc.

◆ linearized_energy_lp_value

double linearized_energy_lp_value = 0.0

Definition at line 105 of file scheduling_cuts.cc.

◆ presence_literal_index

LiteralIndex presence_literal_index = kNoLiteralIndex

Definition at line 99 of file scheduling_cuts.cc.

◆ x_end_max

IntegerValue x_end_max
inherited

Definition at line 134 of file scheduling_cuts.h.

◆ x_end_min

IntegerValue x_end_min
inherited

Definition at line 133 of file scheduling_cuts.h.

◆ x_size_min

IntegerValue x_size_min
inherited

Definition at line 135 of file scheduling_cuts.h.

◆ x_start_max

IntegerValue x_start_max
inherited

Definition at line 132 of file scheduling_cuts.h.

◆ x_start_min

IntegerValue x_start_min
inherited

Definition at line 131 of file scheduling_cuts.h.

◆ y_max

IntegerValue y_max = IntegerValue(0)
inherited

Definition at line 138 of file scheduling_cuts.h.

◆ y_min

IntegerValue y_min = IntegerValue(0)
inherited

Definition at line 137 of file scheduling_cuts.h.

◆ y_size

Definition at line 96 of file scheduling_cuts.cc.

◆ y_size_min

IntegerValue y_size_min
inherited

Definition at line 139 of file scheduling_cuts.h.

◆ y_spread

double y_spread = 0.0

Definition at line 111 of file scheduling_cuts.cc.


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