plot_jaya_multi_pairwise {Jaya}R Documentation

Pairwise Plot Function for Multi-Objective Optimization Results

Description

Generates pairwise 2D plots for all combinations of objectives in the Pareto front. This function visualizes trade-offs between different objectives.

Usage

plot_jaya_multi_pairwise(x, objectives = NULL, ...)

Arguments

x

An object of class jaya_multi containing the optimization results, including the Pareto front.

objectives

A vector of objective column names to include in the pairwise plots. If NULL, all objectives in the Pareto front are used.

...

Additional graphical parameters passed to the plot function.

Details

The function automatically detects objectives in the Pareto front if not specified. It creates pairwise plots for all possible combinations of objectives.

Examples

# Example usage of plot_jaya_multi_pairwise
# Define sample multi-objective optimization problem
objective1 <- function(x) sum(x^2)
objective2 <- function(x) sum(abs(x))
objective3 <- function(x) sum(x^3)
objective4 <- function(x) sum(x^4)

objectives <- list(objective1, objective2, objective3, objective4)
lower_bounds <- c(-5, -5, -5)
upper_bounds <- c(5, 5, 5)

# Run multi-objective optimization using jaya_multi
set.seed(42)
multi_result <- jaya_multi(
  objectives = objectives,
  lower = lower_bounds,
  upper = upper_bounds,
  popSize = 50,
  maxiter = 100,
  n_var = length(lower_bounds)
)

# Pairwise plot of objectives
plot_jaya_multi_pairwise(multi_result)

[Package Jaya version 1.0.3 Index]