Skip to contents

Creates two plots showing the progression of the optimization:

  1. Objective score over iterations

  2. Temperature decay over iterations

Usage

plot_progress(result)

Arguments

result

A list containing the optimization results with the following elements:

  • scores - Numeric vector of objective scores for each iteration

  • temperatures - Numeric vector of temperatures for each iteration

Value

No return value; prints two ggplot objects showing:

  • Progress of the objective score

  • Cooling schedule (temperature decay)

Examples

# Create a simple design
df <- data.frame(
  row = rep(1:3, each = 3),
  col = rep(1:3, times = 3),
  treatment = rep(LETTERS[1:3], 3)
)

# Optimise the design
result <- speed(df, "treatment")
#> row and col are used as row and column, respectively.
#> Early stopping at iteration 76 

# Plot optimization progress
plot_progress(result)