interruption: Interrupt local search

View source: R/interruption.R

interruptionR Documentation

Interrupt local search

Description

This function checks if the local search can be interrupted prematurely.

Usage

interruption(f, point, L, minimize)

Arguments

f

A function that computes value, gradient, and Hessian of the function to be optimized and returns them as a named list with elements value, gradient, and hessian.

point

The current location of the local search.

L

A list of identified optima which contains lists with

  • value and

  • argument

of each identified optimum.

minimize

If TRUE, f gets minimized. If FALSE, maximized.

Value

TRUE for premature interruption, FALSE if not.


vntrs documentation built on May 29, 2024, 10:30 a.m.