Plan-based decompositions programming by Berendsen