interruption: Interrupt local search.

Description Usage Arguments Value

View source: R/interruption.R

Description

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

Usage

1
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 Oct. 18, 2021, 5:08 p.m.