Skip to content

ParetoPlot

Thomas Schmitt edited this page Jan 31, 2021 · 2 revisions

Description

obj = ParetoPlot(name, nRows, nColumns, varargin);

The ParetoPlot class inherits from Figure. Currently, it supports 2 types of plots for Pareto front:

  1. Single 2D- or 3D- front
  2. Cumulative representation of fronts from every time step (2D only)

In any case, the Pareto front is plotted and the chosen solution is emphasized.

There is basically only one method for the user to use (besides all functionality from Figure):

addParetoFront(agent, objectives, subplotIndex, cumulative, [normalized], [showLegend], [optionsFront], [optionsSolution])

Where the last 4 arguments are optional.

Argument Description
agent agent handle for which Pareto front should be plotted
objectives Array with objective indices which should be taken. (Note that ParetoPlot will check on the fly for every objective, it is available. This might change during the simulation if redundancy is checked.)
subplotIndex Index of subplot to take. (Note that, in contrast to TimeSeries, only one Pareto front per subplot is allowed.
cumulative Boolean, whether to plot Pareto fronts cumulative or not. Cumultive is supported only for 2 objectives.
normalized [Optional] Boolean, whether to plot in normalized space. Default: 1
showLegend [Optional] Boolean, whether to print legend entries Pareto Front and Chosen Solution. Default: 1
optionsFront [Optional] Cell array with alternating names and values of properties, which are used for the plot()-call of the front.
optionsSolution [Optional] Cell array with alternating names and values of properties, which are used for the scatter()-call of the chosen solution.