C++ Reference: linear_relaxation

This documentation is automatically generated.

Function Type Arguments Comments
AppendFullEncodingRelaxation

Return type: bool

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

AppendLinearConstraintRelaxation

Return type: void

Arguments: const ConstraintProto& constraint_proto, const int linearization_level, const Model& model, LinearRelaxation* relaxation

AppendMaxRelaxation

Return type: void

Arguments: IntegerVariable target, const std::vector<IntegerVariable>& vars, int linearization_level, Model* model, LinearRelaxation* relaxation

AppendNoOverlapRelaxation

Return type: void

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

AppendPartialEncodingRelaxation

Return type: void

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

AppendPartialGreaterThanEncodingRelaxation

Return type: void

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

TryToLinearizeConstraint

Return type: void

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