Learn R Programming

RCTS (version 0.2.4)

check_stopping_rules: Checks the rules for stopping the algorithm, based on its convergence speed.

Description

Checks the rules for stopping the algorithm, based on its convergence speed.

Usage

check_stopping_rules(
  iteration,
  speed,
  all_OF_values,
  speedlimit = 0.01,
  verbose = FALSE
)

Value

logical

Arguments

iteration

number of iteration

speed

convergence speed

all_OF_values

vector containing the values of the objective function from previous iterations

speedlimit

if the convergence speed falls under this limit the algorithm stops

verbose

if TRUE, more information is printed

Examples

Run this code
check_stopping_rules(4, 1.7, 5:1)

Run the code above in your browser using DataLab