projects the search direction.
by default, no projection is applied.
p (numpy.ndarray) – searchDirection
- Return type
p, projected search direction
If you have things that also need to run in the method projection, you can create a method:
def _projection*(self, ... ): pass
Where the * can be any string. If present, _projection* will be called at the start of the default projection call. You may also completely overwrite this function.