SimPEG.optimization.ProjectedGradient#
- class SimPEG.optimization.ProjectedGradient(**kwargs)[source]#
-
Attributes
callback
counter
parent
print_type
Methods
activeSet
(x)If we are on a bound
bindingSet
(x)If we are on a bound and the negative gradient points away from the feasible set.
doEndIteration
(xt)doEndIteration is called at the end of each minimize iteration.
doStartIteration is called at the start of each minimize iteration.
Finds the search direction based on either CG or steepest descent.
finish
()finish is called at the end of the optimization.
inactiveSet
(x)The free variables.
minimize
(evalFunction, x0)Minimizes the function (evalFunction) starting at the location x0.
modifySearchDirection changes the search direction based on some sort of linesearch or trust-region criteria.
Code is called if modifySearchDirection fails to find a descent direction.
printDone
([inLS])printDone is called at the end of the optimization routine.
printInit
([inLS])printInit is called at the beginning of the optimization routine.
printIter
([inLS])printIter is called directly after function evaluations.
projection
(x)Make sure we are feasible.
scaleSearchDirection should scale the search direction if appropriate.
startup
(x0)startup is called at the start of any new minimize call.
recall
remember
save
stoppingCriteria