Use of the compute_decision_rules function to factorize code (Ref.#173)

Corrections: put resol back where needed.

Use of the compute_decision_rules function to factorize code (Ref.#1173)
9 jobs for master in 2 minutes and 52 seconds (queued for 2 seconds)