SimPEG.optimization.ProjectedGNCG.startup#

ProjectedGNCG.startup(x0)[source]#

startup is called at the start of any new minimize call.

This will set:

x0 = x0
xc = x0
iter = iterLS = 0
Parameters:

x0 (numpy.ndarray) – initial x

Return type:

None

Returns:

None

If you have things that also need to run in the method startup, you can create a method:

def _startup*(self, ... ):
    pass

Where the * can be any string. If present, _startup* will be called at the start of the default startup call. You may also completely overwrite this function.