Evaluate a gadget model

gadget_optimize(
  path,
  params.in = attr(path, "params_in"),
  params.out = attr(path, "params_out"),
  control = attr(path, "optinfo"),
  ...
)

Arguments

path

locatoin of the gadget model

params.in

parameter input file

params.out

parameter output file

control

optimization parameters, can be the location of the optinfo file, gadgetfile object or NULL

...

additional arguments passed on to callGadget

Value

path

Examples

if (FALSE) {
gd <- gadget.variant.dir('model_dir')
optinfo <- read.gadget.file('/',system.file('extdata','optinfo',package = 'Rgadget'))
gadget_optimize(gd,params.in = 'params.in',params.out = 'params.opt', control = optinfo)
}