Fast Adaptation of the Solution of Differential Equations to Changing Constraints