make_optim_function: Takes a non-primitive R function and refactors it to be...

View source: R/utils-optimization.R

make_optim_functionR Documentation

Takes a non-primitive R function and refactors it to be compatible with optimization via stats::optim.

Description

Takes a non-primitive R function and refactors it to be compatible with optimization via stats::optim.

Usage

make_optim_function(fn, ...)

Arguments

fn

function A non-primitive function

...

Arguments to fn to fix for before building the function to be optimized. Useful for reducing the number of free parameters in an optimization if there are insufficient degrees of freedom.

See Also

drop_fn_params, collect_fn_params


bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.