Exhaustive search in the space of all possible grid points is not efficient as soon as the grid becomes large.
we have to adapt the techniques proposed in previous work (Ranjbar et al., 2012;Joachims, 2005).