Class DistanceMinimizationMachineShop

java.lang.Object
org.tweetyproject.logics.pcl.analysis.DistanceMinimizationMachineShop
All Implemented Interfaces:
BeliefBaseMachineShop

public class DistanceMinimizationMachineShop extends Object implements BeliefBaseMachineShop
This consistency restorer uses the distance minimization inconsistency measure to restore consistency.
Author:
Matthias Thimm
  • Constructor Details

    • DistanceMinimizationMachineShop

      public DistanceMinimizationMachineShop(OptimizationRootFinder rootFinder)
    • DistanceMinimizationMachineShop

      public DistanceMinimizationMachineShop()
      Creates a new restorer for p=1.
    • DistanceMinimizationMachineShop

      public DistanceMinimizationMachineShop(int p)
      Creates a new restorer for the given p.
      Parameters:
      p - some parameter for the p-norm.
  • Method Details

    • repair

      public BeliefBase repair(BeliefBase beliefBase)
      Description copied from interface: BeliefBaseMachineShop
      Repairs the given belief base, i.e. restores consistency.
      Specified by:
      repair in interface BeliefBaseMachineShop
      Parameters:
      beliefBase - a possibly inconsistent belief base.
      Returns:
      a consistent belief base that is as close as possible to the given belief base. NOTE: if the given belief base is consistent this method is expected to return it unmodified.