Delete functions related to nlopt optimization and other unused functions