C++ Reference: cp_model_utils

This documentation is automatically generated.

Function Type Arguments Comments
AllValuesInDomain

Return type: std::vector<int64>

Arguments: const ProtoWithDomain& proto

ApplyToAllIntervalIndices

Return type: void

Arguments: const std::function<void(int*

ApplyToAllLiteralIndices

Return type: void

Arguments: const std::function<void(int*

ApplyToAllVariableIndices

Return type: void

Arguments: const std::function<void(int*

ComputeInnerObjective

Return type: int64

Arguments: const CpObjectiveProto& objective, const CpSolverResponse& response

ConstraintCaseName

Return type: std::string

Arguments: ConstraintProto::ConstraintCase constraint_case

DomainInProtoContains

Return type: bool

Arguments: const ProtoWithDomain& proto, int64 value

EnforcementLiteral

Return type: inline int

Arguments: const ConstraintProto& ct

FillDomainInProto

Return type: void

Arguments: const Domain& domain, ProtoWithDomain* proto

GetReferencesUsedByConstraint

Return type: IndexReferences

Arguments: const ConstraintProto& ct

HasEnforcementLiteral

Return type: inline bool

Arguments: const ConstraintProto& ct

NegatedRef

Return type: inline int

Arguments: int ref

PositiveRef

Return type: inline int

Arguments: int ref

ReadDomainFromProto

Return type: Domain

Arguments: const ProtoWithDomain& proto

RefIsPositive

Return type: inline bool

Arguments: int ref

ScaleObjectiveValue

Return type: inline double

Arguments: const CpObjectiveProto& proto, int64 value

UsedIntervals

Return type: std::vector<int>

Arguments: const ConstraintProto& ct

UsedVariables

Return type: std::vector<int>

Arguments: const ConstraintProto& ct