Skip to contents

Function that runs gradient method for one deme. Wrapper function for stats::optim.

Usage

default_run_gradient_method(deme, fitness, optim_args)

Arguments

deme
  • Deme

fitness
  • fitness function

optim_args
  • list of additional parameters (stats::optim parameters)

Value

list with named fields: solution, population, value. See ga_metaepoch for more details.