R/temperatureStep.R

# Function name: temperatureStep
# Author: Yang Li <yang.li@rug.nl>
# Maintainer: Yang Li <yang.li@rug.nl>
# Version: 1.0.0
# Date: 10 Dec. 2007


temperatureStep <- function( startTemp, maxTempStep, endTemp, nIterations )
{
    #This is used by designGG main function (Simulated annealing process)
    if( startTemp * maxTempStep^nIterations < endTemp )
    {
        temperature.step <- exp((log(endTemp) - log(startTemp))/nIterations)
    }
    else
    {
        temperature.step <- maxTempStep
    }
    return( temperature.step )
}

Try the designGG package in your browser

Any scripts or data that you put into this service are public.

designGG documentation built on May 2, 2019, 5:51 a.m.