Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SequenceVar
Note: This documentation is automatically generated.
A sequence variable is a variable whose domain is a set of possible
orderings of the interval variables. It allows ordering of tasks. It
has two sets of methods: ComputePossibleFirstsAndLasts(), which
returns the list of interval variables that can be ranked first or
last; and RankFirst/RankNotFirst/RankLast/RankNotLast, which can be
used to create the search decision.
Clears 'rank_first' and 'rank_last', and fills them with the
intervals in the order of the ranks. If all variables are ranked,
'rank_first' will contain all variables, and 'rank_last' will
contain none.
'unperformed' will contains all such interval variables.
rank_first and rank_last represents different directions.
rank_first[0] corresponds to the first interval of the sequence.
rank_last[0] corresponds to the last interval of the sequence.
Applies the following sequence of ranks, ranks first, then rank
last. rank_first and rank_last represents different directions.
rank_first[0] corresponds to the first interval of the sequence.
rank_last[0] corresponds to the last interval of the sequence.
All intervals in the unperformed vector will be marked as such.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eSequenceVar\u003c/code\u003e in C++ defines a variable representing the ordering of interval variables, essentially enabling task scheduling.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to determine potential first/last tasks (\u003ccode\u003eComputePossibleFirstsAndLasts\u003c/code\u003e) and influence search decisions through ranking (e.g., \u003ccode\u003eRankFirst\u003c/code\u003e, \u003ccode\u003eRankNotLast\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSequenceVar\u003c/code\u003e manages a collection of interval variables and their respective 'next' variables, facilitating the sequencing logic.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access individual intervals, their successors, and overall sequence statistics using dedicated methods like \u003ccode\u003eInterval\u003c/code\u003e, \u003ccode\u003eNext\u003c/code\u003e, and \u003ccode\u003eComputeStatistics\u003c/code\u003e.\u003c/p\u003e\n"]]],["SequenceVar manages orderings of interval variables, enabling task sequencing. Key actions include: `ComputePossibleFirstsAndLasts` to identify intervals eligible for first or last ranking; `RankFirst`, `RankLast`, `RankNotFirst`, and `RankNotLast` to define variable order. The variable can return its `HorizonRange` or its `DurationRange`. `FillSequence` and `RankSequence` to set up the intervals, and `size` to know how many interval variables are inside the sequence. `Interval` and `Next` can be used to retrieve some information.\n"],null,[]]