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

#include <constraint_solver.h>

Inheritance diagram for operations_research::SequenceVarElement:
operations_research::AssignmentElement

Public Member Functions

 SequenceVarElement ()
 --— 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 ()
 
void Activate ()
 
void Deactivate ()
 
bool Activated () const
 

Detailed Description

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 5209 of file constraint_solver.h.

Constructor & Destructor Documentation

◆ SequenceVarElement() [1/2]

operations_research::SequenceVarElement::SequenceVarElement ( )

--— SequenceVarElement --—

Definition at line 248 of file assignment.cc.

◆ SequenceVarElement() [2/2]

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

Definition at line 250 of file assignment.cc.

Member Function Documentation

◆ BackwardSequence()

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

Definition at line 354 of file assignment.cc.

◆ Bound()

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

Definition at line 5232 of file constraint_solver.h.

◆ Clone()

SequenceVarElement * operations_research::SequenceVarElement::Clone ( )

Definition at line 259 of file assignment.cc.

◆ Copy()

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

Definition at line 265 of file assignment.cc.

◆ DebugString()

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

Definition at line 322 of file assignment.cc.

◆ ForwardSequence()

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

Definition at line 350 of file assignment.cc.

◆ LoadFromProto()

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

Definition at line 285 of file assignment.cc.

◆ operator!=()

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

Definition at line 5239 of file constraint_solver.h.

◆ operator==()

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

If both elements are deactivated, then they are equal, regardless of their other fields.

Definition at line 333 of file assignment.cc.

◆ Reset()

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

Definition at line 252 of file assignment.cc.

◆ Restore()

void operations_research::SequenceVarElement::Restore ( )

Definition at line 281 of file assignment.cc.

◆ SetBackwardSequence()

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

Definition at line 376 of file assignment.cc.

◆ SetForwardSequence()

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

Definition at line 371 of file assignment.cc.

◆ SetSequence()

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

Definition at line 362 of file assignment.cc.

◆ SetUnperformed()

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

Definition at line 381 of file assignment.cc.

◆ Store()

void operations_research::SequenceVarElement::Store ( )

Definition at line 277 of file assignment.cc.

◆ Unperformed()

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

Definition at line 358 of file assignment.cc.

◆ Var()

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

Definition at line 5216 of file constraint_solver.h.

◆ WriteToProto()

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

Definition at line 307 of file assignment.cc.


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