Learn R Programming

caRamel (version 1.4)

decrease_pop: Decreasing of the population of parameters sets

Description

decreases the population of parameters sets

Usage

decrease_pop(matobj, minmax, prec, archsize, popsize)

Value

A list containing two elements:

ind_arch

indices of individuals in the updated Pareto front

ind_pop

indices of individuals in the updated population

Arguments

matobj

: matrix of objectives, dimension (ngames, nobj)

minmax

: vector of booleans, of dimension nobj: TRUE if maximization of the objective, FALSE otherwise

prec

: nobj dimension vector: accuracy

archsize

: integer: archive size

popsize

: integer: population size

Author

Fabrice Zaoui

Examples

Run this code
# Definition of the parameters
matobj <- matrix(rexp(200), 100, 2)
prec <- c(1.e-3, 1.e-3)
archsize <- 100
minmax <- c(FALSE, FALSE)
popsize <- 100
# Call the function
res <- decrease_pop(matobj, minmax, prec, archsize, popsize)

Run the code above in your browser using DataLab