You will have to share a complete example to help people help you (Please read: make it easier to help you). You can also look at wrappers of NLopt which might be easier to use and better documented, e.g. Nonconvex.jl, Optimization.jl and JuMP.jl. Then there is TopOpt.jl which is more high level topopt.
1 Like