Learn R Programming

GPareto (version 1.1.8)

plotParetoGrid: Visualisation of Pareto front and set

Description

Plot the Pareto front and set for 2 variables 2 objectives test problems with evaluations on a grid.

Usage

plotParetoGrid(fname = "ZDT1", xlim = c(0, 1), ylim = c(0, 1), n.grid = 100)

Arguments

fname

name of the function considered,

xlim, ylim

numeric vectors of length 2, giving the x and y coordinates ranges, default is [0,1] x [0,1],

n.grid

number of divisions of the grid in each dimension.

Examples

Run this code
#------------------------------------------------------------
# Examples with test functions
#------------------------------------------------------------

plotParetoGrid("ZDT3", n.grid = 21)

plotParetoGrid("P1", n.grid = 21)

plotParetoGrid("MOP2", xlim = c(0, 1), ylim = c(0, 1), n.grid = 21) 

Run the code above in your browser using DataLab