Learn R Programming

CAISEr (version 1.0.17)

example_SANN: Simulated annealing (for testing/examples)

Description

Adapted from stats::optim(). Check their documentation / examples for details.

Usage

example_SANN(Temp, budget, instance)

Arguments

Temp

controls the "SANN" method. It is the starting temperature for the cooling schedule.

budget

stop criterion: number of function evaluations to execute

instance

an instance object (see calc_nreps() for details)

Examples

Run this code
if (FALSE) {
instance <- list(FUN = "TSP.dist", mydist = datasets::eurodist)

example_SANN(Temp = 2000, budget = 10000, instance = instance)
}


Run the code above in your browser using DataLab