Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: scheduling_constraints
Note: This documentation is automatically generated.
Function |
Type |
Arguments |
Comments |
EqualMaxOfSelectedVariables | Return type: std::function<void(Model*)> Arguments: Literal enforcement_literal, AffineExpression target, const std::vector<AffineExpression>& exprs, const std::vector<Literal>& selectors |
EqualMinOfSelectedVariables | Return type: std::function<void(Model*)> Arguments: Literal enforcement_literal, AffineExpression target, const std::vector<AffineExpression>& exprs, const std::vector<Literal>& selectors |
SpanOfIntervals | Return type: std::function<void(Model*)> Arguments: IntervalVariable span, const std::vector<IntervalVariable>& intervals |
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."],[],["The core content describes three C++ functions related to scheduling constraints within the OR-Tools library. `EqualMaxOfSelectedVariables` and `EqualMinOfSelectedVariables` set a target variable to the maximum or minimum, respectively, of selected expressions, using enforcement literals and selectors. `SpanOfIntervals` defines a span interval that encompasses a collection of other intervals. Each function returns a callable object to be applied to a Model, they also provide the type and its arguments.\n"],null,[]]