14 #ifndef OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ 15 #define OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ 34 const SatParameters& params);
46 bool has_objective =
true);
61 #if !defined(__PORTABLE_PLATFORM__) 67 const std::string& params);
68 #endif // !__PORTABLE_PLATFORM__ 99 #if !defined(__PORTABLE_PLATFORM__) 101 const std::string& params);
102 #endif // !__PORTABLE_PLATFORM__ 109 #endif // OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ std::string CpModelStats(const CpModelProto &model_proto)
Returns a string with some statistics on the given CpModelProto.
Class that owns everything related to a particular optimization model.
CpSolverResponse Solve(const CpModelProto &model_proto)
Solves the given CpModelProto and returns an instance of CpSolverResponse.
std::function< void(Model *)> NewFeasibleSolutionObserver(const std::function< void(const CpSolverResponse &response)> &observer)
Creates a solution observer with the model with model.Add(NewFeasibleSolutionObserver([](response){....
CpSolverResponse SolveWithParameters(const CpModelProto &model_proto, const SatParameters ¶ms)
Solves the given CpModelProto with the given parameters.
SharedResponseManager * response
CpModelProto const * model_proto
Collection of objects used to extend the Constraint Solver library.
std::string CpSolverResponseStats(const CpSolverResponse &response, bool has_objective)
Returns a string with some statistics on the solver response.
std::function< SatParameters(Model *)> NewSatParameters(const std::string ¶ms)
Creates parameters for the solver, which you can add to the model with.
CpSolverResponse SolveCpModel(const CpModelProto &model_proto, Model *model)
Solves the given CpModelProto.