setup(pd_factory,
arglist,
uid=' UID ' ,
psn_factory=<class 'gmisclib.mcmc.position_repeatable'>,
adjust_prms=None)
| source code
|
This and prepares to restart a mcmc.py optimization from a log
file.
- Parameters:
arglist (list(str)) - the list of arguments to the optimization routine (i.e. the linux
command line).
adjust_prms (None or function( mcmc_indexclass.index_base, mcmc.problem_definition, mcmc_indexclass.index) -> mcmc_indexclass.index_base. The parameters go
into the first argument. The definition of the new problem is
the second argument. The third argument is a random indexer for
the new problem. (This is provided mostly so you can conveniently
find out what parameters are expected.)) - a function to make arbitrary changes to the parameters before you
restart.
Notes:
-
This assumes that an optimization does not require any fixed
parameters.
-
Don't mix -restart and -Restart.
-
The -Restart flag will be treated as -restart if you attempt to
adjust parameters.
|