Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: cp_model_checker
Note: This documentation is automatically generated.
Function |
Type |
Arguments |
Comments |
SolutionIsFeasible | Return type: bool Arguments: const CpModelProto& model, const std::vector<int64_t>& variable_values, const CpModelProto* mapping_proto = nullptr, const std::vector<int>* postsolve_mapping = nullptr |
ValidateCpModel | Return type: std::string Arguments: const CpModelProto& model, bool after_presolve = false |
ValidateInputCpModel | Return type: std::string Arguments: const SatParameters& params, const CpModelProto& model |
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 provided C++ documentation details three functions for validating and checking CP (Constraint Programming) models. `ValidateCpModel` checks a `CpModelProto` for validity, optionally after presolving, returning a string describing any errors. `ValidateInputCpModel` validates a `CpModelProto` against given `SatParameters`, also returning error information. `SolutionIsFeasible` verifies if a solution (`variable_values`) is feasible for a given `CpModelProto`, considering potential mapping and postsolve data, returning a boolean.\n"],null,[]]