Convert Non-linear objective function from Maximization to Minimization

Consider maximizing -x^2. The reciprocal is -1/x^2. This has no minimum, and the derivative at x=0 is undefined. For a problem like this, a gradient-based optimizer will encounter problems. On the other hand, if you just multiply by -1, you won’t have any trouble.

5 Likes