Hello lavaan developers,
I am wondering if it is at all possible to use an optimizer that is not natively supported by writing a wrapper function that follows a particular function signature and passing to lavaan. I'm guessing not by looking at lav_model_estimate.R, though the documentation for control in lavOptions almost hints at this possibility "If another (external) optimizer is selected, see the manpage for that optimizer...". I have also seen other packages with this sort of functionality.
If not possible, wondering how tricky it would be to allow this or to add another optimizer, and where in the maze of code one could start.
Thank you!
Carl