Learn R Programming

optimx (version 2023-10.21)

Expanded Replacement and Extension of the 'optim' Function

Description

Provides a replacement and extension of the optim() function to call to several function minimization codes in R in a single statement. These methods handle smooth, possibly box constrained functions of several or many parameters. Note that function 'optimr()' was prepared to simplify the incorporation of minimization codes going forward. Also implements some utility codes and some extra solvers, including safeguarded Newton methods. Many methods previously separate are now included here. This is the version for CRAN.

Copy Link

Version

Install

install.packages('optimx')

Monthly Downloads

12,957

Version

2023-10.21

License

GPL-2

Maintainer

Last Published

October 24th, 2023

Functions in optimx (2023-10.21)

ctrldefault

set control defaults
fnchk

Run tests, where possible, on user objective function
grcentral

Central difference numerical gradient approximation.
grnd

A reorganization of the call to numDeriv grad() function.
grback

Backward difference numerical gradient approximation.
grfwd

Forward difference numerical gradient approximation.
gHgenb

Generate gradient and Hessian for a function at given parameters.
coef

Summarize opm object
gHgen

Generate gradient and Hessian for a function at given parameters.
grchk

Run tests, where possible, on user objective function and (optionally) gradient and hessian
optchk

General-purpose optimization
grpracma

A reorganization of the call to numDeriv grad() function.
multistart

General-purpose optimization - multiple starts
hesschk

Run tests, where possible, on user objective function and (optionally) gradient and hessian
kktchk

Check Kuhn Karush Tucker conditions for a supposed function minimum
optimx-package

A replacement and extension of the optim() function, plus various optimization tools
optimr

General-purpose optimization
optimx

General-purpose optimization
hjn

Compact R Implementation of Hooke and Jeeves Pattern Search Optimization
opm

General-purpose optimization
polyopt

General-purpose optimization - sequential application of methods
tnbc

Truncated Newton function minimization with bounds constraints
tn

Truncated Newton minimization of an unconstrained function.
proptimr

Compact display of an optimr() result object
snewton

Safeguarded Newton methods for function minimization using R functions.
scalechk

Check the scale of the initial parameters and bounds input to an optimization code used in nonlinear optimization
summary.optimx

Summarize optimx object
Rcgmin

An R implementation of a nonlinear conjugate gradient algorithm with the Dai / Yuan update and restart. Based on Nash (1979) Algorithm 22 for its main structure.
Rcgminb

An R implementation of a bounded nonlinear conjugate gradient algorithm with the Dai / Yuan update and restart. Based on Nash (1979) Algorithm 22 for its main structure. CALL THIS VIA Rcgmin AND DO NOT USE DIRECTLY.
Rcgminu

An R implementation of an unconstrained nonlinear conjugate gradient algorithm with the Dai / Yuan update and restart. Based on Nash (1979) Algorithm 22 for its main structure. CALL THIS VIA Rcgmin AND DO NOT USE DIRECTLY.
bmstep

Compute the maximum step along a search direction.
Rvmmin

Variable metric nonlinear function minimization, driver.
checksolver

Test if requested solver is present
axsearch

Perform axial search around a supposed MINIMUM and provide diagnostics
Rvmminb

Variable metric nonlinear function minimization with bounds constraints
bmchk

Check bounds and masks for parameter constraints used in nonlinear optimization
Rvmminu

Variable metric nonlinear function minimization, unconstrained