A Learning Model for the Selection of Problem-Solving Strategies in Continuous Physical Systems