the aim of this question is to optimize a search procedure. The search space is obtained through the cartesian product of a set of vectors, obtained by itertools. prod
itertools. prod