 |
OR-Tools
8.0
|
Go to the documentation of this file.
16 #ifndef OR_TOOLS_SAT_LP_UTILS_H_
17 #define OR_TOOLS_SAT_LP_UTILS_H_
54 MPModelProto* mp_model);
71 const MPModelProto& mp_model,
72 CpModelProto* cp_model);
79 LinearBooleanProblem* problem);
83 glop::LinearProgram* lp);
96 const glop::LinearProgram& lp, SatSolver* sat_solver,
97 double max_time_in_seconds);
102 LinearBooleanProblem* problem);
107 #endif // OR_TOOLS_SAT_LP_UTILS_H_
int FindRationalFactor(double x, int limit, double tolerance)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
void ConvertBooleanProblemToLinearProgram(const LinearBooleanProblem &problem, glop::LinearProgram *lp)
std::vector< double > DetectImpliedIntegers(MPModelProto *mp_model)
std::vector< double > ScaleContinuousVariables(double scaling, double max_bound, MPModelProto *mp_model)
bool ConvertMPModelProtoToCpModelProto(const SatParameters ¶ms, const MPModelProto &mp_model, CpModelProto *cp_model)
bool SolveLpAndUseSolutionForSatAssignmentPreference(const glop::LinearProgram &lp, SatSolver *sat_solver, double max_time_in_seconds)
bool SolveLpAndUseIntegerVariableToStartLNS(const glop::LinearProgram &lp, LinearBooleanProblem *problem)
bool ConvertBinaryMPModelProtoToBooleanProblem(const MPModelProto &mp_model, LinearBooleanProblem *problem)
int FixVariablesFromSat(const SatSolver &solver, glop::LinearProgram *lp)