 |
OR-Tools
8.0
|
Go to the documentation of this file.
14 #ifndef OR_TOOLS_SAT_LINEAR_RELAXATION_H_
15 #define OR_TOOLS_SAT_LINEAR_RELAXATION_H_
76 int linearization_level,
86 const ConstraintProto&
ct,
93 const std::vector<IntegerVariable>& vars,
117 IntegerVariable target,
const std::vector<LinearExpression>& exprs,
129 const int linearization_level,
136 #endif // OR_TOOLS_SAT_LINEAR_RELAXATION_H_
bool AppendFullEncodingRelaxation(IntegerVariable var, const Model &model, LinearRelaxation *relaxation)
void AppendNoOverlapRelaxation(const CpModelProto &model_proto, const ConstraintProto &ct, int linearization_level, Model *model, LinearRelaxation *relaxation)
CpModelProto const * model_proto
std::vector< IntegerVariable > AppendLinMaxRelaxation(IntegerVariable target, const std::vector< LinearExpression > &exprs, Model *model, LinearRelaxation *relaxation)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
Class that owns everything related to a particular optimization model.
void AppendPartialEncodingRelaxation(IntegerVariable var, const Model &model, LinearRelaxation *relaxation)
std::vector< CutGenerator > cut_generators
void AppendMaxRelaxation(IntegerVariable target, const std::vector< IntegerVariable > &vars, int linearization_level, Model *model, LinearRelaxation *relaxation)
std::vector< LinearConstraint > linear_constraints
std::vector< std::vector< Literal > > at_most_ones
void AppendLinearConstraintRelaxation(const ConstraintProto &constraint_proto, const int linearization_level, const Model &model, LinearRelaxation *relaxation)
void AppendPartialGreaterThanEncodingRelaxation(IntegerVariable var, const Model &model, LinearRelaxation *relaxation)
void TryToLinearizeConstraint(const CpModelProto &model_proto, const ConstraintProto &ct, Model *model, int linearization_level, LinearRelaxation *relaxation)