NLopt - Same complex clalculations in objetive function and nonlinear constraints

That looks like a smart solution.
Thanks for your support!