Class AbstractTactic

    • Field Detail

      • copy

        protected final org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy
        Creates copy of genotypes
    • Constructor Detail

      • AbstractTactic

        public AbstractTactic​(org.opt4j.operator.copy.Copy<org.opt4j.core.Genotype> copy,
                              DSEIndividualFactory individualFactory,
                              DSEWorkflowConfiguration configuration,
                              String[] strings)
        Parameters:
        copy - Creates copy of genotypes
        individualFactory - Builds individual
    • Method Detail

      • increaseCounterOfGeneratedCandidates

        protected final void increaseCounterOfGeneratedCandidates()
      • getHeuristicWeight

        public final double getHeuristicWeight()
        Description copied from interface: ITactic
        Weight of heuristic determines the probability of its candidates being selected
        Specified by:
        getHeuristicWeight in interface ITactic
        Returns:
        Weight used for selecting candidate out of a set of candidates
      • setHeuristicWeight

        protected final void setHeuristicWeight​(double weight)
      • getNumberOfGeneratedCandidates

        public final int getNumberOfGeneratedCandidates()
        Description copied from interface: ITactic
        Returns the number of generated candidates of this instance
        Specified by:
        getNumberOfGeneratedCandidates in interface ITactic
        Returns:
        Number of candidates generated by this heuristic
      • improves

        public final boolean improves​(Dimension dimension,
                                      EvaluationAspect aspect)
        Description copied from interface: ITactic
        Checks if a certain aspect of a dimension is improved, if the heuristic is applied. The specification is necessary, if the heuristics are applied based on their bound violations.
        Specified by:
        improves in interface ITactic
        Parameters:
        dimension - The dimension to check
        aspect - The evaluation aspect of the dimension to check
        Returns:
        true, if the EvaluationAspect of the dimension, i.e. quality attribute, of a individual improves after applying the heuristic
        false, otherwise
      • doesNotImprove

        public boolean doesNotImprove​(Dimension dimension,
                                      EvaluationAspect aspect)
        Description copied from interface: ITactic
        Checks if a certain aspect of a dimension is not improved, if the heuristic is applied. The specification is necessary, if the heuristics are applied based on their bound violations.
        Specified by:
        doesNotImprove in interface ITactic
        Parameters:
        dimension - The dimension to check
        aspect - The evaluation aspect of the dimension to check
        Returns:
        true, if the EvaluationAspect of the dimension, i.e. quality attribute, of a individual does not improve after applying the heuristic
        false, otherwise
        See Also:
        ITactic.improves(Dimension, EvaluationAspect)