Class DistanceMinimizationMachineShop

  • All Implemented Interfaces:
    BeliefBaseMachineShop

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

      • 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 Detail

      • 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.