3#include "solvers/SolverInterface.hpp"
21 unsigned int numberUnsatClauses;
22 unsigned int numberFlips;
55 virtual void setPhase(
const unsigned int var,
const bool phase) = 0;
#define LOGSTAT(...)
Log a statistics message.
Definition Logger.hpp:145
Interface for Local Search solvers.
Definition LocalSearchInterface.hpp:32
void printWinningLog()
Print winning log information.
Definition LocalSearchInterface.hpp:62
virtual ~LocalSearchInterface()=default
Virtual destructor.
unsigned int getNbUnsat()
Get the number of unsatisfied clauses.
Definition LocalSearchInterface.hpp:72
LocalSearchType lsType
Type of the local search.
Definition LocalSearchInterface.hpp:76
std::vector< int > finalTrail
Vector holding the model or the final trail.
Definition LocalSearchInterface.hpp:82
LocalSearchStats lsStats
Statistics on the local search.
Definition LocalSearchInterface.hpp:79
LocalSearchInterface(int solverId, LocalSearchType _lsType)
Constructor for LocalSearchInterface.
Definition LocalSearchInterface.hpp:39
virtual void setPhase(const unsigned int var, const bool phase)=0
Set initial phase for a given variable.
Interface for a SAT solver with standard features.
Definition SolverInterface.hpp:62
virtual void printWinningLog()
Print the winning log.
unsigned int getSolverId()
Get the solver ID.
Definition SolverInterface.hpp:178
LocalSearchType
Local Search solvers type.
Definition LocalSearchInterface.hpp:14
SolverAlgorithmType
Enumeration for types of solver algorithms.
Definition SolverInterface.hpp:50
Local search statistics.
Definition LocalSearchInterface.hpp:20