The relative entropy is fundamental to adaptive resolution simulations