org.sat4j.pb
Class ObjectiveFunction
java.lang.Object
org.sat4j.pb.ObjectiveFunction
- All Implemented Interfaces:
- Serializable
public class ObjectiveFunction
- extends Object
- implements Serializable
Abstraction for an Objective Function for Pseudo Boolean Optimization.
May be generalized in the future to deal with other optimization functions.
- Author:
- leberre
- See Also:
- Serialized Form
ObjectiveFunction
public ObjectiveFunction(IVecInt vars,
IVec<BigInteger> coeffs)
calculateDegree
public BigInteger calculateDegree(ISolver solver)
calculateDegreeImplicant
public BigInteger calculateDegreeImplicant(ISolver solver)
getCoeffs
public IVec<BigInteger> getCoeffs()
getVars
public IVecInt getVars()
setCorrection
public void setCorrection(BigInteger correction)
getCorrection
public BigInteger getCorrection()
toString
public String toString()
- Overrides:
toString
in class Object
minValue
public BigInteger minValue()
calculateDegree
public BigInteger calculateDegree(int[] model)
Copyright © 2012 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.