make_gadget_optinfofile: Create a Gadget optimization info file

Description Usage Arguments Details Value Examples

Description

This function creates a list of class gadget_optinfofile that can be used to write to file the components desired for optimization in Gadget. Arguments to the function can either be left blank for the default; otherwise they must be named arguments with names corresponding to the optimization routine desired (see Gadget User Guide. Chapter 11.).

Usage

1

Arguments

...

Named list(s) with names corresponding to the optimization type desired.

Details

If the default values provided by gadgetSim are desired, then use a named argument with "default" (i.e. simann = "default"). Otherwise, you can specify as many or as few parameters to alter in a list

Value

A list of class gadget_optinfofile

Examples

1
2
3
4
5
opt <- make_gadget_optinfofile()
opt <- make_gadget_optinfofile(simann = "default")
opt <- make_gadget_optinfofile(simann = list(simanniter = 10000,
                                             t = 3000),
                               bfgs = list(bfgsiter = 20000))

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.