Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

vntrs

About

This package is an implementation of the variable neighborhood trust region search algorithm Bierlaire et al. (2009) "A Heuristic for Nonlinear Global Optimization".

How to get started

  1. Install the latest package version via running install.packages("vntrs") in your R console.

  2. Specify an R function f 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.

  3. Call vntrs::vntrs(f = f, npar = npar, minimize = minimize), where

  • npar is the number of parameters of f and

  • minimize is a boolean, determining whether f should be minimized (minimize = TRUE, the default) or maximized (minimize = FALSE).

Optionally, you can tune the algorithm by specifying the named list controls and passing it to search. See the help file of help("vntrs") for details.

Copy Link

Version

Install

install.packages('vntrs')

Monthly Downloads

244

Version

0.1.1

License

GPL-3

Maintainer

Lennart Oelschläger

Last Published

December 21st, 2023

Functions in vntrs (0.1.1)

initialize

Initialize search
interruption

Interrupt local search
unique_optimum

Check new optimum for uniqueness
vntrs-package

vntrs: Variable Neighborhood Trust Region Search
local

Local trust region search
vntrs

Variable neighborhood trust region search
check_controls

Check controls
select_neighbors

Select neighbors
check_f

Check function