fix examples after FEASIBLE -> OPTIMAL CP-SAT change; improve display of the sudoku problem

This commit is contained in:
Laurent Perron
2020-09-20 09:04:28 +02:00
parent d5c2f5f2a6
commit 54bda4bd42
6 changed files with 15 additions and 8 deletions

View File

@@ -185,7 +185,7 @@ void CostasBool(const int dim) {
}
const CpSolverResponse response = SolveCpModel(cp_model.Build(), &model);
if (response.status() == CpSolverStatus::FEASIBLE) {
if (response.status() == CpSolverStatus::OPTIMAL) {
std::vector<int64> costas_matrix;
std::string output;