Enable magic squares 4

This commit is contained in:
chriseth
2022-03-20 22:34:22 +01:00
parent b6e6cd4ebb
commit 29be0d23f6
2 changed files with 27 additions and 24 deletions
+2
View File
@@ -79,6 +79,8 @@ optional<CDCL::Model> CDCL::solve()
{
if (auto variable = nextDecisionVariable())
{
cout << "Level " << currentDecisionLevel() << " - ";
cout << ((m_assignments.size() * 100) / m_variables.size()) << "% of variables assigned." << endl;
m_decisionPoints.emplace_back(m_assignmentTrail.size());
// cout << "Deciding on " << m_variables.at(*variable) << " @" << currentDecisionLevel() << endl;
enqueue(Literal{false, *variable}, nullptr);