Metaheuristic, Scala