get_observations {CAISEr} | R Documentation |
Run an algorithm on a problem.
Description
Call algorithm routine for the solution of a problem instance
Usage
get_observations(algo, instance, n = 1)
Arguments
algo |
a list object containing the definitions of the algorithm.
See |
instance |
a list object containing the definitions of the problem
instance. See |
n |
number of observations to generate. |
Value
vector of observed performance values
Author(s)
Felipe Campelo (fcampelo@ufmg.br, f.campelo@aston.ac.uk)
See Also
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)
[Package CAISEr version 1.0.17 Index]