public final class Sat4jUtils
extends java.lang.Object
Sat4jUtils
contains a number of utilities to deal with SAT4J.Modifier and Type | Method and Description |
---|---|
static org.sat4j.specs.IVecInt |
createClause(int newIndex,
int size) |
static java.util.Map<IntegerVariable,java.math.BigInteger> |
decodeSolution(org.sat4j.specs.IProblem problem,
java.util.Map<IntegerVariable,java.lang.Integer> indices) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualConst(IntegerField lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualConst(IntegerVariable lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualConst(int linkToIndex,
IntegerField lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualConst(int linkToIndex,
IntegerVariable lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualVar(IntegerField lhs,
int lhsIndex,
IntegerField rhs,
int rhsIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualVar(IntegerVariable lhs,
int lhsIndex,
IntegerVariable rhs,
int rhsIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualVar(int linkToIndex,
IntegerField lhs,
int lhsIndex,
IntegerField rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarEqualVar(int linkToIndex,
IntegerVariable lhs,
int lhsIndex,
IntegerVariable rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualConst(IntegerField lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualConst(IntegerVariable lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualConst(int linkToIndex,
IntegerField lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualConst(int linkToIndex,
IntegerVariable lhs,
int lhsIndex,
java.math.BigInteger rhs) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualVar(IntegerField lhs,
int lhsIndex,
IntegerField rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualVar(IntegerVariable lhs,
int lhsIndex,
IntegerVariable rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualVar(int linkToIndex,
IntegerField lhs,
int lhsIndex,
IntegerField rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> |
encodeVarNotEqualVar(int linkToIndex,
IntegerVariable lhs,
int lhsIndex,
IntegerVariable rhs,
int rhsIndex,
int newIndex) |
static org.sat4j.specs.ISolver |
getSolver() |
public static org.sat4j.specs.ISolver getSolver()
public static org.sat4j.specs.IVecInt createClause(int newIndex, int size)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualConst(IntegerField lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualConst(IntegerVariable lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualConst(int linkToIndex, IntegerField lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualConst(int linkToIndex, IntegerVariable lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualConst(IntegerField lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualConst(IntegerVariable lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualConst(int linkToIndex, IntegerField lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualConst(int linkToIndex, IntegerVariable lhs, int lhsIndex, java.math.BigInteger rhs)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualVar(IntegerField lhs, int lhsIndex, IntegerField rhs, int rhsIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualVar(IntegerVariable lhs, int lhsIndex, IntegerVariable rhs, int rhsIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualVar(int linkToIndex, IntegerField lhs, int lhsIndex, IntegerField rhs, int rhsIndex, int newIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarEqualVar(int linkToIndex, IntegerVariable lhs, int lhsIndex, IntegerVariable rhs, int rhsIndex, int newIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualVar(IntegerField lhs, int lhsIndex, IntegerField rhs, int rhsIndex, int newIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualVar(IntegerVariable lhs, int lhsIndex, IntegerVariable rhs, int rhsIndex, int newIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualVar(int linkToIndex, IntegerField lhs, int lhsIndex, IntegerField rhs, int rhsIndex, int newIndex)
public static org.sat4j.specs.IVec<org.sat4j.specs.IVecInt> encodeVarNotEqualVar(int linkToIndex, IntegerVariable lhs, int lhsIndex, IntegerVariable rhs, int rhsIndex, int newIndex)
public static java.util.Map<IntegerVariable,java.math.BigInteger> decodeSolution(org.sat4j.specs.IProblem problem, java.util.Map<IntegerVariable,java.lang.Integer> indices)