All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gapt.provers.maxsat.bestAvailableMaxSatSolver.scala Maven / Gradle / Ivy

The newest version!
package gapt.provers.maxsat

import gapt.formats.dimacs.DIMACS.{Model, Clause, CNF}

object bestAvailableMaxSatSolver extends MaxSATSolver {
  val actualSolver =
    Seq(OpenWBO, QMaxSAT).find(_.isInstalled).getOrElse(MaxSat4j)

  override def solve(hard: CNF, soft: Seq[(Clause, Int)]): Option[Model] =
    actualSolver.solve(hard, soft)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy