 This involves defining a search space, or the set of possible solutions.This space is typically too large to be explored exhaustively, suggesting a metaheuristic approach.A metric  (also called a fitness function, cost function, objective function or quality measure) is then used to measure the quality of potential solutions.