Learn R Programming

caRamel (version 1.4)

plot_pareto: Plotting of a population of objectives and Pareto front

Description

Plots graphs the population regarding each couple of objectives and emphasizes the Pareto front

Usage

plot_pareto(MatObj, nobj = NULL, objnames = NULL, maximized = NULL)

Arguments

MatObj

: matrix of the objectives [NInd, nobj]

nobj

: number of objectives (optional)

objnames

: vector, length nobj, of names of the objectives (optional)

maximized

: vector of logical, length nobj, TRUE if objective need to be maximized, FALSE if minimized

Author

Celine Monteil

Examples

Run this code
# Definition of the population
Pop <- matrix(runif(300), 100, 3)

# Definition of objectives to maximize (Obj1, Obj2) and to minimize (Obj3)
maximized <- c(TRUE, TRUE, FALSE)

# Call the function
plot_pareto(MatObj = Pop, maximized = maximized)

Run the code above in your browser using DataLab