Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class DisjunctiveNotLast
Note: This documentation is automatically generated.
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\u003eThe \u003ccode\u003eDisjunctiveNotLast\u003c/code\u003e class is a constraint used in scheduling with the OR-Tools library in C++, focusing on tasks not being scheduled last in a sequence.\u003c/p\u003e\n"],["\u003cp\u003eIt provides essential methods like \u003ccode\u003ePropagate\u003c/code\u003e for constraint enforcement and \u003ccode\u003eRegisterWith\u003c/code\u003e for integration with a literal watcher.\u003c/p\u003e\n"],["\u003cp\u003eInitialization involves specifying the time direction (true for forward) and a helper object to manage the scheduling constraint.\u003c/p\u003e\n"]]],["The `DisjunctiveNotLast` class in C++ has methods for managing scheduling constraints. `DisjunctiveNotLast` takes a boolean `time_direction` and a `SchedulingConstraintHelper` during construction. `Propagate` is a method that returns a boolean, likely indicating success or failure of a constraint propagation. `RegisterWith` registers with a `GenericLiteralWatcher`, returning an integer, potentially an ID or status code. These methods help manage the constraints associated with tasks not being the last in a disjunctive sequence.\n"],null,["# DisjunctiveNotLast\n\nC++ Reference: class DisjunctiveNotLast\n=======================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [`DisjunctiveNotLast`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L215) | \u003cbr /\u003e Arguments: `bool time_direction, SchedulingConstraintHelper* helper` \u003cbr /\u003e |\n| [`Propagate`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L219) | Return type: `bool ` \u003cbr /\u003e |\n| [`RegisterWith`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/disjunctive.h#L220) | Return type: `int ` Arguments: `GenericLiteralWatcher* watcher` \u003cbr /\u003e |"]]