![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#include <constraint_solver.h>
Public Member Functions | |
SequenceVarElement () | |
--— SequenceVarElement --— | |
SequenceVarElement (SequenceVar *var) | |
void | Reset (SequenceVar *var) |
SequenceVarElement * | Clone () |
void | Copy (const SequenceVarElement &element) |
SequenceVar * | Var () 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 |
![]() | |
AssignmentElement () | |
void | Activate () |
void | Deactivate () |
bool | Activated () const |
The SequenceVarElement stores a partial representation of ranked interval variables in the underlying sequence variable. This representation consists of three vectors:
Definition at line 5307 of file constraint_solver.h.
operations_research::SequenceVarElement::SequenceVarElement | ( | ) |
--— SequenceVarElement --—
Definition at line 246 of file assignment.cc.
|
explicit |
Definition at line 248 of file assignment.cc.
const std::vector< int > & operations_research::SequenceVarElement::BackwardSequence | ( | ) | const |
Definition at line 352 of file assignment.cc.
|
inline |
Definition at line 5330 of file constraint_solver.h.
SequenceVarElement * operations_research::SequenceVarElement::Clone | ( | ) |
Definition at line 257 of file assignment.cc.
void operations_research::SequenceVarElement::Copy | ( | const SequenceVarElement & | element | ) |
Definition at line 263 of file assignment.cc.
std::string operations_research::SequenceVarElement::DebugString | ( | ) | const |
Definition at line 320 of file assignment.cc.
const std::vector< int > & operations_research::SequenceVarElement::ForwardSequence | ( | ) | const |
Definition at line 348 of file assignment.cc.
void operations_research::SequenceVarElement::LoadFromProto | ( | const SequenceVarAssignment & | sequence_var_assignment_proto | ) |
Definition at line 283 of file assignment.cc.
|
inline |
Definition at line 5337 of file constraint_solver.h.
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 331 of file assignment.cc.
void operations_research::SequenceVarElement::Reset | ( | SequenceVar * | var | ) |
Definition at line 250 of file assignment.cc.
void operations_research::SequenceVarElement::Restore | ( | ) |
Definition at line 279 of file assignment.cc.
void operations_research::SequenceVarElement::SetBackwardSequence | ( | const std::vector< int > & | backward_sequence | ) |
Definition at line 374 of file assignment.cc.
void operations_research::SequenceVarElement::SetForwardSequence | ( | const std::vector< int > & | forward_sequence | ) |
Definition at line 369 of file assignment.cc.
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 360 of file assignment.cc.
void operations_research::SequenceVarElement::SetUnperformed | ( | const std::vector< int > & | unperformed | ) |
Definition at line 379 of file assignment.cc.
void operations_research::SequenceVarElement::Store | ( | ) |
Definition at line 275 of file assignment.cc.
const std::vector< int > & operations_research::SequenceVarElement::Unperformed | ( | ) | const |
Definition at line 356 of file assignment.cc.
|
inline |
Definition at line 5314 of file constraint_solver.h.
void operations_research::SequenceVarElement::WriteToProto | ( | SequenceVarAssignment * | sequence_var_assignment_proto | ) | const |
Definition at line 305 of file assignment.cc.