Class BoxGSAAcceptanceProbabilityFunction

    • Constructor Detail

      • BoxGSAAcceptanceProbabilityFunction

        public BoxGSAAcceptanceProbabilityFunction​(Vector lower,
                                                   Vector upper,
                                                   double qa)
        Constructs a boxed acceptance probability function.
        Parameters:
        lower - lower bounds
        upper - upper bounds
        qa - an acceptance parameter
    • Method Detail

      • acceptanceProbability

        public double acceptanceProbability​(Vector currentState,
                                            double currentEnergy,
                                            Vector proposedState,
                                            double proposedEnergy,
                                            double temperature)
        Description copied from interface: TemperedAcceptanceProbabilityFunction
        Computes the probability that the next state transition will be accepted.
        Specified by:
        acceptanceProbability in interface TemperedAcceptanceProbabilityFunction
        Parameters:
        currentState - the current state of the system
        currentEnergy - the energy in the current state
        proposedState - the proposed next state of the system
        proposedEnergy - the energy in the proposed state
        temperature - the current temperature
        Returns:
        the acceptance probability