putting pmin discretization into EntropySearch class to avoid some resolving errors