Check whether a function signature is amenable to optimization via stats::optim
.
is_optim_compatible.Rd
Functions compatible with optim
have the parameter named par
as their
first formal argument where each value is a respective free parameter to
be optimized.