14 #ifndef OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ 15 #define OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ 21 #include "ortools/base/integral_types.h" 42 CpSolverResponse
SolveCpModel(
const CpModelProto& model_proto, Model* model);
45 CpSolverResponse
Solve(
const CpModelProto& model_proto);
50 const SatParameters& params);
52 #if !defined(__PORTABLE_PLATFORM__) 56 const std::string& params);
57 #endif // !__PORTABLE_PLATFORM__ 82 #if !defined(__PORTABLE_PLATFORM__) 84 const std::string& params);
85 #endif // !__PORTABLE_PLATFORM__ 92 #endif // OR_TOOLS_SAT_CP_MODEL_SOLVER_H_ std::string CpModelStats(const CpModelProto &model)
Returns a std::string with some statistics on the given CpModelProto.
void SetSynchronizationFunction(std::function< CpSolverResponse()> f, Model *model)
If set, the underlying solver will call this function "regularly" in a deterministic way.
CpSolverResponse SolveCpModel(const CpModelProto &model_proto, Model *model)
Solves the given CpModelProto.
std::string CpSolverResponseStats(const CpSolverResponse &response)
Returns a std::string with some statistics on the solver response.
CpSolverResponse Solve(const CpModelProto &model_proto)
Solves the given cp_model and returns an instance of CpSolverResponse.
std::function< void(Model *)> NewFeasibleSolutionObserver(const std::function< void(const CpSolverResponse &response)> &observer)
Allows to register a solution "observer" with the model with model.Add(NewFeasibleSolutionObserver([]...
Class that owns everything related to a particular optimization model.
CpSolverResponse SolveWithParameters(const CpModelProto &model_proto, const SatParameters ¶ms)
Solves the given cp_model with the give sat parameters, and returns an instance of CpSolverResponse.
std::function< SatParameters(Model *)> NewSatParameters(const std::string ¶ms)
Allows to change the default parameters with model->Add(NewSatParameters(parameters_as_string_or_prot...
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...