Class ConstraintCheckerImpl

java.lang.Object
org.opt4j.core.domination.ConstraintCheckerImpl
All Implemented Interfaces:
ConstraintChecker, IndividualSetListener, IndividualStateListener

public class ConstraintCheckerImpl extends Object implements ConstraintChecker, IndividualSetListener, IndividualStateListener
ConstraintCheckerImpl calculates constraint violations of infeasibility constraints.
See Also:
  • Field Details

    • constraintRanges

      protected Map<Constraint,Range> constraintRanges
      stores the current range of criterion values in the population for each constraint i.e. stores the minimum value in the population for each Constraint and the maimum value. make it thread safe to avoid accidental problems.
  • Constructor Details

    • ConstraintCheckerImpl

      @Inject public ConstraintCheckerImpl(Population population)
      as this class listens on Population, it must be registered there
  • Method Details