Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::Dimension Class Referenceabstract

-------— Dimension -------— More...

Inheritance diagram for operations_research::Dimension:
operations_research::BaseObject

Public Member Functions

 Dimension (Solver *const s, Pack *const pack)
 
 ~Dimension () override
 
virtual void Post ()=0
 
virtual void InitialPropagate (int bin_index, const std::vector< int > &forced, const std::vector< int > &undecided)=0
 
virtual void InitialPropagateUnassigned (const std::vector< int > &assigned, const std::vector< int > &unassigned)=0
 
virtual void EndInitialPropagate ()=0
 
virtual void Propagate (int bin_index, const std::vector< int > &forced, const std::vector< int > &removed)=0
 
virtual void PropagateUnassigned (const std::vector< int > &assigned, const std::vector< int > &unassigned)=0
 
virtual void EndPropagate ()=0
 
std::string DebugString () const override
 
virtual void Accept (ModelVisitor *visitor) const =0
 
Solversolver () const
 
bool IsUndecided (int var_index, int bin_index) const
 
bool IsPossible (int var_index, int bin_index) const
 
IntVarAssignVar (int var_index, int bin_index) const
 
void SetImpossible (int var_index, int bin_index)
 
void Assign (int var_index, int bin_index)
 
bool IsAssignedStatusKnown (int var_index) const
 
void SetAssigned (int var_index)
 
void SetUnassigned (int var_index)
 
void RemoveAllPossibleFromBin (int bin_index)
 
void AssignAllPossibleToBin (int bin_index)
 
void AssignFirstPossibleToBin (int bin_index)
 
void AssignAllRemainingItems ()
 
void UnassignAllRemainingItems ()
 
- Public Member Functions inherited from operations_research::BaseObject
 BaseObject ()
 
 BaseObject (const BaseObject &)=delete
 This type is neither copyable nor movable.
 
BaseObjectoperator= (const BaseObject &)=delete
 
virtual ~BaseObject ()
 

Detailed Description

-------— Dimension -------—

Definition at line 35 of file pack.cc.

Constructor & Destructor Documentation

◆ Dimension()

operations_research::Dimension::Dimension ( Solver *const s,
Pack *const pack )
inlineexplicit

Definition at line 37 of file pack.cc.

◆ ~Dimension()

operations_research::Dimension::~Dimension ( )
inlineoverride

Definition at line 39 of file pack.cc.

Member Function Documentation

◆ Accept()

virtual void operations_research::Dimension::Accept ( ModelVisitor * visitor) const
pure virtual

◆ Assign()

void operations_research::Dimension::Assign ( int var_index,
int bin_index )
inline

Definition at line 73 of file pack.cc.

◆ AssignAllPossibleToBin()

void operations_research::Dimension::AssignAllPossibleToBin ( int bin_index)
inline

Definition at line 89 of file pack.cc.

◆ AssignAllRemainingItems()

void operations_research::Dimension::AssignAllRemainingItems ( )
inline

Definition at line 97 of file pack.cc.

◆ AssignFirstPossibleToBin()

void operations_research::Dimension::AssignFirstPossibleToBin ( int bin_index)
inline

Definition at line 93 of file pack.cc.

◆ AssignVar()

IntVar * operations_research::Dimension::AssignVar ( int var_index,
int bin_index ) const
inline

Definition at line 65 of file pack.cc.

◆ DebugString()

std::string operations_research::Dimension::DebugString ( ) const
inlineoverridevirtual

Reimplemented from operations_research::BaseObject.

Definition at line 52 of file pack.cc.

◆ EndInitialPropagate()

virtual void operations_research::Dimension::EndInitialPropagate ( )
pure virtual

◆ EndPropagate()

virtual void operations_research::Dimension::EndPropagate ( )
pure virtual

◆ InitialPropagate()

virtual void operations_research::Dimension::InitialPropagate ( int bin_index,
const std::vector< int > & forced,
const std::vector< int > & undecided )
pure virtual

◆ InitialPropagateUnassigned()

virtual void operations_research::Dimension::InitialPropagateUnassigned ( const std::vector< int > & assigned,
const std::vector< int > & unassigned )
pure virtual

◆ IsAssignedStatusKnown()

bool operations_research::Dimension::IsAssignedStatusKnown ( int var_index) const
inline

Definition at line 77 of file pack.cc.

◆ IsPossible()

bool operations_research::Dimension::IsPossible ( int var_index,
int bin_index ) const
inline

Definition at line 61 of file pack.cc.

◆ IsUndecided()

bool operations_research::Dimension::IsUndecided ( int var_index,
int bin_index ) const
inline

Definition at line 57 of file pack.cc.

◆ Post()

virtual void operations_research::Dimension::Post ( )
pure virtual

◆ Propagate()

virtual void operations_research::Dimension::Propagate ( int bin_index,
const std::vector< int > & forced,
const std::vector< int > & removed )
pure virtual

◆ PropagateUnassigned()

virtual void operations_research::Dimension::PropagateUnassigned ( const std::vector< int > & assigned,
const std::vector< int > & unassigned )
pure virtual

◆ RemoveAllPossibleFromBin()

void operations_research::Dimension::RemoveAllPossibleFromBin ( int bin_index)
inline

Definition at line 85 of file pack.cc.

◆ SetAssigned()

void operations_research::Dimension::SetAssigned ( int var_index)
inline

Definition at line 81 of file pack.cc.

◆ SetImpossible()

void operations_research::Dimension::SetImpossible ( int var_index,
int bin_index )
inline

Definition at line 69 of file pack.cc.

◆ SetUnassigned()

void operations_research::Dimension::SetUnassigned ( int var_index)
inline

Definition at line 83 of file pack.cc.

◆ solver()

Solver * operations_research::Dimension::solver ( ) const
inline

Definition at line 55 of file pack.cc.

◆ UnassignAllRemainingItems()

void operations_research::Dimension::UnassignAllRemainingItems ( )
inline

Definition at line 99 of file pack.cc.


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