C++ Reference: class RoutingCPSatWrapper

This documentation is automatically generated.

Method
AddMaximumConstraint

Return type: void

Arguments: int max_var, std::vector<int> vars

AddProductConstraint

Return type: void

Arguments: int product_var, std::vector<int> vars

Clear

Return type: void

ClearObjective

Return type: void

CreateNewConstraint

Return type: int

Arguments: int64_t lower_bound, int64_t upper_bound

CreateNewPositiveVariable

Return type: int

GetObjectiveCoefficient

Return type: double

Arguments: int index

GetObjectiveValue

Return type: int64_t

GetValue

Return type: double

Arguments: int index

GetVariableLowerBound

Return type: int64_t

Arguments: int index

IsCPSATSolver

Return type: bool

NumVariables

Return type: int

RoutingCPSatWrapper

~RoutingCPSatWrapper

SetCoefficient

Return type: void

Arguments: int ct_index, int index, double coefficient

SetEnforcementLiteral

Return type: void

Arguments: int ct, int condition

SetObjectiveCoefficient

Return type: void

Arguments: int index, double coefficient

SetVariableBounds

Return type: bool

Arguments: int index, int64_t lower_bound, int64_t upper_bound

SetVariableDisjointBounds

Return type: void

Arguments: int index, const std::vector<int64_t>& starts, const std::vector<int64_t>& ends

SolutionIsInteger

Return type: bool

Solve

Return type: DimensionSchedulingStatus

Arguments: absl::Duration duration_limit