Stay organized with collections
Save and categorize content based on your preferences.
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 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"]]