Trying NLopt minimization... doesn't work yet