Class DMaxSatInconsistencyMeasure
java.lang.Object
org.tweetyproject.logics.commons.analysis.BeliefSetInconsistencyMeasure<PlFormula>
org.tweetyproject.logics.pl.analysis.SatBasedInconsistencyMeasure
org.tweetyproject.logics.pl.analysis.DMaxSatInconsistencyMeasure
- All Implemented Interfaces:
PostulateEvaluatable<PlFormula>
,InconsistencyMeasure<BeliefSet<PlFormula,
?>>
This class presents a sat-encoding-based implementation of the max-distance
measure of [Grant and Hunter, “Analysing inconsistent information using distance-based
measures” Int. J. Approx. Reasoning, 2017]. This measure seeks an interpretation
I such that the the maximal distance between every formula of the knowledge base and I is minimal.
The value of the inconsistency is than exactly this value.
- Author:
- Anna Gessler
-
Field Summary
Fields inherited from interface org.tweetyproject.logics.commons.analysis.InconsistencyMeasure
MEASURE_TOLERANCE
-
Constructor Summary
ConstructorDescriptionCreate a new DMaxSatInconsistencyMeasure with the default SAT solver.DMaxSatInconsistencyMeasure
(SatSolver solver) Create a new DMaxSatInconsistencyMeasure with the given SAT solver. -
Method Summary
Modifier and TypeMethodDescriptiongetSATEncoding
(Collection<PlFormula> kb, int upper_bound) This method measures the inconsistency of the given set of formulas.toString()
Methods inherited from class org.tweetyproject.logics.commons.analysis.BeliefSetInconsistencyMeasure
inconsistencyMeasure
-
Constructor Details
-
DMaxSatInconsistencyMeasure
Create a new DMaxSatInconsistencyMeasure with the given SAT solver.- Parameters:
solver
- some SAT solver
-
DMaxSatInconsistencyMeasure
public DMaxSatInconsistencyMeasure()Create a new DMaxSatInconsistencyMeasure with the default SAT solver.
-
-
Method Details
-
inconsistencyMeasure
Description copied from class:BeliefSetInconsistencyMeasure
This method measures the inconsistency of the given set of formulas.- Specified by:
inconsistencyMeasure
in classBeliefSetInconsistencyMeasure<PlFormula>
- Parameters:
kb
- a collection of formulas.- Returns:
- a Double indicating the degree of inconsistency.
-
getSATEncoding
-
toString
-