Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: cp_model_loader
Note: This documentation is automatically generated.
Function |
Type |
Arguments |
Comments |
AddFullEncodingFromSearchBranching | Return type: void Arguments: const CpModelProto& model_proto, Model* m |
DetectOptionalVariables | Return type: void Arguments: const CpModelProto& model_proto, Model* m |
LoadAllDiffConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadAtMostOneConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadBoolAndConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadBooleanSymmetries | Return type: void Arguments: const CpModelProto& model_proto, Model* m |
LoadBoolOrConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadBoolXorConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadCircuitConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadCircuitCoveringConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadConstraint | Return type: bool Arguments: const ConstraintProto& ct, Model* m |
LoadCumulativeConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadExactlyOneConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadIntDivConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadIntMaxConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadIntMinConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadIntProdConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadLinearConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadLinMaxConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadNoOverlap2dConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadNoOverlapConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadRoutesConstraint | Return type: void Arguments: const ConstraintProto& ct, Model* m |
LoadVariables | Return type: void Arguments: const CpModelProto& model_proto, bool view_all_booleans_as_integers, Model* m |
PropagateEncodingFromEquivalenceRelations | Return type: void Arguments: const CpModelProto& model_proto, Model* m |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ecp_model_loader\u003c/code\u003e in C++ provides functions to load various constraints and variables into a CP-SAT model.\u003c/p\u003e\n"],["\u003cp\u003eIt supports loading common constraint types like AllDifferent, AtMostOne, Boolean constraints, and scheduling constraints.\u003c/p\u003e\n"],["\u003cp\u003eFunctions are provided to extract and propagate encodings for more efficient solving.\u003c/p\u003e\n"],["\u003cp\u003eIt facilitates the loading of CP models defined in protocol buffer format (\u003ccode\u003eCpModelProto\u003c/code\u003e) into the solver's internal model representation (\u003ccode\u003eModel\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eUsers can leverage these functions to build and solve complex optimization problems using CP-SAT.\u003c/p\u003e\n"]]],["This C++ documentation outlines functions for loading and processing constraint programming (CP) models. Key actions include loading various constraint types like `BoolAnd`, `BoolOr`, `Linear`, `Cumulative`, `NoOverlap`, and more. It involves extracting encodings, detecting optional variables, and managing boolean symmetries. The functions handle specific constraints and general constraint loading, accepting `CpModelProto` or `ConstraintProto` along with a `Model` as arguments. They enable loading variables and can add encodings from search branching.\n"],null,["# cp_model_loader\n\nC++ Reference: cp_model_loader\n==============================\n\n\nNote: This documentation is automatically generated.\n\n| Function | Type | Arguments | Comments |\n|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|-----------|----------|\n| [`AddFullEncodingFromSearchBranching`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L85) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |\n| [`DetectOptionalVariables`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L54) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |\n| [`ExtractElementEncoding`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L71) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |\n| [`ExtractEncoding`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L66) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |\n| [`LoadAllDiffConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L98) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadAtMostOneConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L94) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadBoolAndConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L93) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadBooleanSymmetries`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L61) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |\n| [`LoadBoolOrConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L92) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadBoolXorConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L96) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadCircuitConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L107) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadCircuitCoveringConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L109) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L90) | Return type: `bool ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadCumulativeConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L106) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadExactlyOneConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L95) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadIntDivConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L100) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadIntMaxConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L103) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadIntMinConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L101) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadIntProdConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L99) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadLinearConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L97) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadLinMaxConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L102) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadNoOverlap2dConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L105) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadNoOverlapConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L104) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadRoutesConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L108) | Return type: `void ` Arguments: `const ConstraintProto& ct, Model* m` \u003cbr /\u003e |\n| [`LoadVariables`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L50) | Return type: `void ` Arguments: `const CpModelProto& model_proto, bool view_all_booleans_as_integers, Model* m` \u003cbr /\u003e |\n| [`PropagateEncodingFromEquivalenceRelations`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/cp_model_loader.h#L79) | Return type: `void ` Arguments: `const CpModelProto& model_proto, Model* m` \u003cbr /\u003e |"]]