Optimiser function

Optimiser wrapper for network models

Optimiser wrapper for network models

Optimiser( i = NULL, maxit = 10000, method = "Nelder-Mead", A, N_p, fixedSt_P = c(), N_unif_P = 0, func, ExtraSettings = NULL )

Arguments

  • i: RNG Seed to set
  • maxit: Maximum number of iterations to be passed to optim (default is 10000)
  • method: Optimiser method to pass to optim. Default is
  • A: Interaction Presence-Absence matrix
  • N_p: Number of parameters to draw from a normal distribution
  • fixedSt_P: Vector of fixed parameters to pass
  • N_unif_P: Number of parameters to take from a uniform distribution
  • func: Function to optimiser
  • ExtraSettings: Additional setting to pass to control

Returns

A 'fit' object form optim, with a few of the input parameters attached.

  • Maintainer: Chris Terry
  • License: GPL-3
  • Last published: 2024-06-10

Useful links