Corrections: put resol back where needed. Use of the compute_decision_rules function to factorize code (Ref.#1173)