Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: all_different
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\u003eall_different\u003c/code\u003e constraint in C++ enforces that all variables in a given set have unique values.\u003c/p\u003e\n"],["\u003cp\u003eThis constraint is supported by classes like \u003ccode\u003eAllDifferentBoundsPropagator\u003c/code\u003e and \u003ccode\u003eAllDifferentConstraint\u003c/code\u003e, providing different propagation and implementation strategies for ensuring distinctness.\u003c/p\u003e\n"]]],["The C++ reference documentation defines two classes related to the \"all_different\" constraint in the context of optimization, likely within a Satisfiability Modulo Theories (SMT) solver. These classes are `AllDifferentBoundsPropagator`, which handles the propagation of bounds related to the constraint, and `AllDifferentConstraint`, which represents the core \"all_different\" constraint itself. This implies functionality for enforcing uniqueness among a set of variables.\n"],null,["# all_different\n\nC++ Reference: all_different\n============================\n\n\nNote: This documentation is automatically generated.\n\n| Classes ------- ||\n|--------------------------------------------------------------------------------------------------------|---|\n| [AllDifferentBoundsPropagator](/optimization/reference/sat/all_different/AllDifferentBoundsPropagator) |\n| [AllDifferentConstraint](/optimization/reference/sat/all_different/AllDifferentConstraint) |"]]