Google OR-Tools: operations_research::SequenceVarElement Class Reference

The SequenceVarElement stores a partial representation of ranked interval variables in the underlying sequence variable. This representation consists of three vectors:

  • the forward sequence. That is the list of interval variables ranked first in the sequence. The first element of the backward sequence is the first interval in the sequence variable.
  • the backward sequence. That is the list of interval variables ranked last in the sequence. The first element of the backward sequence is the last interval in the sequence variable.
  • The list of unperformed interval variables. Furthermore, if all performed variables are ranked, then by convention, the forward_sequence will contain all such variables and the backward_sequence will be empty.

Definition at line 5337 of file constraint_solver.h.

#include <constraint_solver.h>

operations_research::AssignmentElement

Public Member Functions

 SequenceVarElement ()
 SequenceVarElement (SequenceVar *var)
void Reset (SequenceVar *var)
SequenceVarElementClone ()
void Copy (const SequenceVarElement &element)
SequenceVarVar () const
void Store ()
void Restore ()
void LoadFromProto (const SequenceVarAssignment &sequence_var_assignment_proto)
void WriteToProto (SequenceVarAssignment *sequence_var_assignment_proto) const
const std::vector< int > & ForwardSequence () const
const std::vector< int > & BackwardSequence () const
const std::vector< int > & Unperformed () const
void SetSequence (const std::vector< int > &forward_sequence, const std::vector< int > &backward_sequence, const std::vector< int > &unperformed)
void SetForwardSequence (const std::vector< int > &forward_sequence)
void SetBackwardSequence (const std::vector< int > &backward_sequence)
void SetUnperformed (const std::vector< int > &unperformed)
bool Bound () const
std::string DebugString () const
bool operator== (const SequenceVarElement &element) const
bool operator!= (const SequenceVarElement &element) const
Public Member Functions inherited from operations_research::AssignmentElement
 AssignmentElement ()
 AssignmentElement (const AssignmentElement &)=default
void Activate ()
void Deactivate ()
bool Activated () const
operations_research::SequenceVarElement::SequenceVarElement ( )

◆ SequenceVarElement() [2/2]

operations_research::SequenceVarElement::SequenceVarElement ( SequenceVar * var)
explicit

◆ BackwardSequence()

const std::vector< int > & operations_research::SequenceVarElement::BackwardSequence ( ) const

◆ Bound()

bool operations_research::SequenceVarElement::Bound ( ) const
inline

◆ Clone()

SequenceVarElement * operations_research::SequenceVarElement::Clone ( )

◆ Copy()

void operations_research::SequenceVarElement::Copy ( const SequenceVarElement & element)

◆ DebugString()

std::string operations_research::SequenceVarElement::DebugString ( ) const

◆ ForwardSequence()

const std::vector< int > & operations_research::SequenceVarElement::ForwardSequence ( ) const

◆ LoadFromProto()

void operations_research::SequenceVarElement::LoadFromProto ( const SequenceVarAssignment & sequence_var_assignment_proto)

◆ operator!=()

bool operations_research::SequenceVarElement::operator!= ( const SequenceVarElement & element) const
inline

◆ operator==()

bool operations_research::SequenceVarElement::operator== ( const SequenceVarElement & element) const

◆ Reset()

void operations_research::SequenceVarElement::Reset ( SequenceVar * var)

◆ Restore()

void operations_research::SequenceVarElement::Restore ( )

◆ SetBackwardSequence()

void operations_research::SequenceVarElement::SetBackwardSequence ( const std::vector< int > & backward_sequence)

◆ SetForwardSequence()

void operations_research::SequenceVarElement::SetForwardSequence ( const std::vector< int > & forward_sequence)

◆ SetSequence()

void operations_research::SequenceVarElement::SetSequence ( const std::vector< int > & forward_sequence,
const std::vector< int > & backward_sequence,
const std::vector< int > & unperformed )

◆ SetUnperformed()

void operations_research::SequenceVarElement::SetUnperformed ( const std::vector< int > & unperformed)

◆ Store()

void operations_research::SequenceVarElement::Store ( )

◆ Unperformed()

const std::vector< int > & operations_research::SequenceVarElement::Unperformed ( ) const

◆ Var()

SequenceVar * operations_research::SequenceVarElement::Var ( ) const
inline

◆ WriteToProto()

void operations_research::SequenceVarElement::WriteToProto ( SequenceVarAssignment * sequence_var_assignment_proto) const

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