Learn R Programming

caRamel (version 1.4)

plot_population: Plotting of a population of objectives

Description

Plot graphs the population regarding each couple of objectives

Usage

plot_population(
  MatObj,
  nobj,
  ngen = NULL,
  nrun = NULL,
  objnames = NULL,
  MatEvol = NULL,
  popsize = 0
)

Arguments

MatObj

: matrix of the objectives [NInd, nobj]

nobj

: number of objectives

ngen

: number of generations (optional)

nrun

: number of model evaluations (optional)

objnames

: vector of objectives names (optional)

MatEvol

: matrix of the evolution of the optimal objectives (optional)

popsize

: integer, size of the initial population (optional)

Author

Celine Monteil

Examples

Run this code
# Definition of the population
Pop <- matrix(runif(300), 100, 3)
# Call the function
plot_population(MatObj = Pop, nobj = 3, objnames = c("Obj1", "Obj2", "Obj3"))

Run the code above in your browser using DataLab