Package org.ddolib.examples.max2sat


package org.ddolib.examples.max2sat
This package implements the acs, astar and ddo models for the Maximum 2-Satisfiability Problem (MAX2SAT) Problem. Given a logic formula in CNF whose clauses (of the formula comprises at most two literals) have each been assigned a weight, the MAX2SAT problem consists in finding a variable assignment that maximizes the total weight of the satisfied clauses. This problem is considered in the papers:
  • Class
    Description
    Class to model a Binary clause of two literals for CNF formula.
    Maximum 2-Satisfiability (MAX2SAT) (MAX2SAT) problem with Acs.
    Maximum 2-Satisfiability (MAX2SAT) (MAX2SAT) problem with AsTar.
    Maximum 2-Satisfiability (MAX2SAT) (MAX2SAT) problem with Ddo.
    Implementation of a fast lower bound heuristic for the Maximum 2-Satisfiability (MAX2SAT) problem.
    Methods to generate random instance of the Max2Sat problem.
    Entry point for solving the Maximum 2-Satisfiability (MAX-2SAT) problem using a Large Neighborhood Search (LNS) approach combined with Decision Diagram Optimization (DDO).
    Represents a Maximum 2-Satisfiability (MAX2SAT) problem instance.
    Class used to compare two states for the Max2Sat problem.
    Implements a relaxation for the Maximum 2-Satisfiability (MAX2SAT) problem.
    Class to contain data for the Max2Sat sate.
    A naive Max2Sat solver which enumerates all the solution to find the best one.