Theres also a Julia interface to NLopt GitHub - JuliaOpt/NLopt.jl: Package to call the NLopt nonlinear-optimization library from the Julia language
so the porting should be very straightforward if you make use of that
2 Likes