add support for model deep copy in C++ and python; increase the frequency of time limit checks in code solving

This commit is contained in:
Laurent Perron
2021-02-17 16:42:54 +01:00
parent 4c38da8ca5
commit 948476129c
7 changed files with 176 additions and 25 deletions

View File

@@ -35,7 +35,10 @@ namespace sat {
// removed.
//
// Note that this function doest NOT preserve the order of Literal in the core.
void MinimizeCoreWithPropagation(SatSolver* solver, std::vector<Literal>* core);
//
// TODO(user): Avoid spending too much time trying to minimize a core.
void MinimizeCoreWithPropagation(TimeLimit* limit, SatSolver* solver,
std::vector<Literal>* core);
// Because the Solve*() functions below are also used in scripts that requires a
// special output format, we use this to tell them whether or not to use the