initial code to support calling a lifted knowledge compilation solver
This commit is contained in:
38
packages/CLPBN/horus/LiftedKc.cpp
Normal file
38
packages/CLPBN/horus/LiftedKc.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "LiftedKc.h"
|
||||
#include "LiftedWCNF.h"
|
||||
#include "LiftedCircuit.h"
|
||||
|
||||
|
||||
LiftedKc::LiftedKc (const ParfactorList& pfList)
|
||||
: pfList_(pfList)
|
||||
{
|
||||
lwcnf_ = new LiftedWCNF (pfList);
|
||||
circuit_ = new LiftedCircuit (lwcnf_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
LiftedKc::~LiftedKc (void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
Params
|
||||
LiftedKc::solveQuery (const Grounds&)
|
||||
{
|
||||
return Params();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
LiftedKc::printSolverFlags (void) const
|
||||
{
|
||||
stringstream ss;
|
||||
ss << "lifted kc [" ;
|
||||
ss << "log_domain=" << Util::toString (Globals::logDomain);
|
||||
ss << "]" ;
|
||||
cout << ss.str() << endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user