Are there some functions that cannot be optimized using calculus? I've been working on a project to maximize a functions output using a genetic algorithm. However, from the limited calculus I know I thought there were methods to find the maximum of a mathematical function using calculus? I'd assume the reason genetic algorithms are sometimes used to maximize functions is because there are functions where the mathematical methods don't work. If I'm correct, what are those conditions? I'd guess that maybe it's because the function is not continuous or differentiable?

Calculus methods are useful for functions which are differentiable. For functions which are not differentiable calculus won't help much. For instance the data set could be discrete. Some examples of this include:


*

*A set of binary variables like a set of yes/no decisions. Which set of filters and parameters shall we use for this image to get best image quality?

*Which order to visit cities will minimize cost? Or which vehicles to transport which goods to minimize time and/or required resources?

*Which set of coins will minimize time to pay a beer in cash?

