C++ Reference: cp_model
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."],[[["This document serves as an automatically generated C++ reference for the `cp_model`."],["It details various classes relevant to constraint programming within the `cp_model`."],["Key classes include `BoolVar`, `IntVar`, `IntervalVar`, `LinearExpr`, and `DoubleLinearExpr`."],["The reference outlines constraint classes such as `AutomatonConstraint`, `CircuitConstraint`, `CumulativeConstraint`, `NoOverlap2DConstraint`, `ReservoirConstraint`, `TableConstraint`, and `MultipleCircuitConstraint`."],["It also features the `CpModelBuilder` class for constructing constraint programming models, and the base class `Constraint`."]]],["This C++ reference outlines the `cp_model` component, detailing its classes for constraint programming. Key classes include: `BoolVar` and `IntVar` for variables, `IntervalVar` for intervals, and `LinearExpr`/`DoubleLinearExpr` for expressions. Constraints are defined via `Constraint`, `AutomatonConstraint`, `CircuitConstraint`, `CumulativeConstraint`, `MultipleCircuitConstraint`, `NoOverlap2DConstraint`, `ReservoirConstraint`, and `TableConstraint`. The `CpModelBuilder` class is also present. These elements facilitate building and solving constraint optimization problems.\n"]]