- class SimPEG.objective_function.BaseObjectiveFunction(nP=None, mapping=None, has_fields=False, counter=None, debug=False)#
Base Objective Function
Inherit this to build your own objective function. If building a regularization, have a look at
SimPEG.regularization.BaseRegularizationas there are additional methods and properties tailored to regularization of a model. Similarly, for building a data misfit, see
A SimPEG.Maps instance
Number of model parameters expected.
Evaluate the objective functions for a given model
First derivative of the objective function with respect to the model
Second derivative of the objective function with respect to the model
Base class of expected maps
Run a convergence test on both the first and second derivatives - they should be second order!