C++ Reference: linear_relaxation

Note: This documentation is automatically generated.

Function Type Arguments Comments
AddAllDiffCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* m, LinearRelaxation* relaxation

AddCircuitCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* m, LinearRelaxation* relaxation

AddCumulativeCutGenerator

Return type: void

Arguments: const AffineExpression& capacity, SchedulingConstraintHelper* helper, SchedulingDemandHelper* demands, std::optional<AffineExpression>& makespan, Model* m, LinearRelaxation* relaxation

AddCumulativeRelaxation

Return type: void

Arguments: const AffineExpression& capacity, SchedulingConstraintHelper* helper, SchedulingDemandHelper* demands, std::optional<AffineExpression> makespan, Model* model, LinearRelaxation* relaxation

AddIntProdCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, int linearization_level, Model* m, LinearRelaxation* relaxation

AddLinMaxCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* m, LinearRelaxation* relaxation

AddNoOverlap2dCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* m, LinearRelaxation* relaxation

AddNoOverlapCutGenerator

Return type: void

Arguments: SchedulingConstraintHelper* helper, const std::optional<AffineExpression>& makespan, Model* m, LinearRelaxation* relaxation

AddRoutesCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* m, LinearRelaxation* relaxation

AppendAtMostOneRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendBoolAndRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendBoolOrRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendCircuitRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendCumulativeRelaxationAndCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendExactlyOneRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendLinearConstraintRelaxation

Return type: void

Arguments: const ConstraintProto& ct, bool linearize_enforced_constraints, Model* model, LinearRelaxation* relaxation

AppendLinMaxRelaxationPart1

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendLinMaxRelaxationPart2

Return type: void

Arguments: IntegerVariable target, const std::vector<Literal>& alternative_literals, const std::vector<LinearExpression>& exprs, Model* model, LinearRelaxation* relaxation

AppendMaxAffineRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendNoOverlapRelaxationAndCutGenerator

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

AppendPartialGreaterThanEncodingRelaxation

Return type: void

Arguments: IntegerVariable var, const Model& model, LinearRelaxation* relaxation

AppendRelaxationForEqualityEncoding

Return type: void

Arguments: IntegerVariable var, const Model& model, LinearRelaxation* relaxation, int* num_tight, int* num_loose

AppendRoutesRelaxation

Return type: void

Arguments: const ConstraintProto& ct, Model* model, LinearRelaxation* relaxation

ComputeLinearRelaxation

Return type: LinearRelaxation

Arguments: const CpModelProto& model_proto, Model* m

CreateAlternativeLiteralsWithView

Return type: std::vector<Literal>

Arguments: int num_literals, Model* model, LinearRelaxation* relaxation

TryToLinearizeConstraint

Return type: void

Arguments: const CpModelProto& model_proto, const ConstraintProto& ct, int linearization_level, Model* model, LinearRelaxation* relaxation