Call algorithm routine for the solution of a problem instance

get_observations(algo, instance, n = 1)

Arguments

algo

a list object containing the definitions of the algorithm. See calc_nreps() for details.

instance

a list object containing the definitions of the problem instance. See calc_nreps() for details.

n

number of observations to generate.

Value

vector of observed performance values

See also

Author

Felipe Campelo (fcampelo@ufmg.br, f.campelo@aston.ac.uk)

Examples

# Make a dummy instance with a centered (zero-mean) exponential distribution:
instance <- list(FUN = "dummyinstance", distr = "rexp", rate = 5, bias = -1/5)

# Simulate a dummy algorithm that has a uniform distribution of expected
# performance values, between -25 and 50.
algorithm <- list(FUN = "dummyalgo",
                 distribution.fun = "runif",
                 distribution.pars = list(min = -25, max = 50))
x <- get_observations(algorithm, instance, n = 1000)
hist(x)