Open
Description
Summary
In pynumero/interfaces/external_grey_box.py, ExternalGreyBoxModel
works both with and without hessians. To use hessians, a derived class must implement a few methods as described in the doc string. However, there is not a default implementation of these in the base class with NotImplementedError
. Then, the _ExternalGreyBoxAsNLP
uses hasattr
to see if hessians should be used (
has_hessian
method, etc.)