From an unconstrained model with quenched interactions to a constrained model with annealed interactions