Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class DisjunctivePrecedences
Note: This documentation is automatically generated.
Exploits the precedences relations of the form "this set of disjoint
IntervalVariables must be performed before a given IntegerVariable". The
relations are computed with PrecedencesPropagator::ComputePrecedences().
Method |
DisjunctivePrecedences | Arguments: bool time_direction,
SchedulingConstraintHelper* helper,
IntegerTrail* integer_trail,
PrecedencesPropagator* precedences |
Propagate | Return type: bool |
RegisterWith | Return type: int Arguments: GenericLiteralWatcher* watcher |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eDisjunctivePrecedences\u003c/code\u003e leverages precedence relationships to enforce the order of disjoint \u003ccode\u003eIntervalVariables\u003c/code\u003e before a specific \u003ccode\u003eIntegerVariable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese precedence relationships are determined using the \u003ccode\u003ePrecedencesPropagator::ComputePrecedences()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods like \u003ccode\u003ePropagate\u003c/code\u003e and \u003ccode\u003eRegisterWith\u003c/code\u003e to manage and apply these constraints within the scheduling context.\u003c/p\u003e\n"]]],["The `DisjunctivePrecedences` class in C++ manages precedence relations where a set of disjoint `IntervalVariables` must occur before a given `IntegerVariable`. It utilizes `PrecedencesPropagator::ComputePrecedences()` to establish these relations. Key actions include using the `Propagate` method to enforce these relations. `RegisterWith` allows integration with a `GenericLiteralWatcher`. The constructor `DisjunctivePrecedences` sets up the object given a `time_direction`, `SchedulingConstraintHelper`, `IntegerTrail` and `PrecedencesPropagator` arguments.\n"],null,["# DisjunctivePrecedences\n\nC++ Reference: class DisjunctivePrecedences\n===========================================\n\n\nNote: This documentation is automatically generated.\nExploits the precedences relations of the form \"this set of disjoint IntervalVariables must be performed before a given IntegerVariable\". The relations are computed with PrecedencesPropagator::ComputePrecedences().\n\n| Method ||\n|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`DisjunctivePrecedences`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L265) | \u003cbr /\u003e Arguments: `bool time_direction, SchedulingConstraintHelper* helper, IntegerTrail* integer_trail, PrecedencesPropagator* precedences` \u003cbr /\u003e |\n| [`Propagate`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L275) | Return type: `bool ` \u003cbr /\u003e |\n| [`RegisterWith`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L276) | Return type: `int ` Arguments: `GenericLiteralWatcher* watcher` \u003cbr /\u003e |"]]