A simple package that uses
Ipopt.jl to solve constrained nonlinear
optimization problems. See the examples and test files for usage demonstrations.
For the moment, it is very autodiff-oriented. Two functions are exported:
ipopt_optimize(objective, ini; [kwargs...]), which uses some AD tool of your
ReverseDiff+ForwardDiff) to get gradients
and Hessians (unless you use Ipopt's BFGS approximation).
ipopt_nlsolve(fn, ini; [kwargs...]), which solves the nonlinear system of
fn(v) = 0. Again, AD is used for the Jacobian.
If you like the interface but want to provide your own gradient and/or Lagrangian Hessian, let me know and I can put it in.
Optional mixed-mode (forward-over-reverse) AD. It compiles the reverse-mode tapes, so even if you pass in an ugly and inefficient allocating objective you'll get nice gradients and Hessians. On the flip side, if compiling the tape doesn't work for you, I don't have much to offer for mixed-mode at present and you're stuck with just forward mode.
Pass in any Ipopt argument as a normal kwarg:
ipopt_optimize(obj, ini, [...], alpha_red_factor=0.15, [...]).
I can't promise this will be a good fit for you, and you may well be better off
Nonconvex.jl. But if your needs are simple and you really need
to pass in your objective function as a closure, for example, I also don't think
you really stand to gain very much by using those very complex packages. I
expect that this may be useful to a small but nontrivial fraction of Julia
users. It's also on the MIT license and I welcome suggestions and/or
enhancements. Sourcehut uses email and not PRs, but you can also just email me
a patch file. I don't expect too too much traffic here.
My email address(es) are listed on my personal website, which you can find with any search engine.