Added decimation algorithm DECMAP
[libdai.git] / src / alldai.cpp
index 46a5a39..266227f 100644 (file)
@@ -68,6 +68,10 @@ InfAlg *newInfAlg( const std::string &name, const FactorGraph &fg, const Propert
 #ifdef DAI_WITH_CBP
     if( name == CBP::Name )
         return new CBP (fg, opts);
+#endif
+#ifdef DAI_WITH_DECMAP
+    if( name == DecMAP::Name )
+        return new DecMAP (fg, opts);
 #endif
     DAI_THROWE(UNKNOWN_DAI_ALGORITHM,"Unknown libDAI algorithm: " + name);
 }