powell's method self.minimize added