Optimization methods try to find the maximum or minimum of a function, where there may exist restrictions or constraints on the independent variables. Finding the maximum or minimum of a function which is also the global maximum or minimum of the function has considerable difficulty and is the complex part of any optimization method. In engineering, it is generally considered practical to search only for local solutions.