Control simulation of a mass-spring-damper system using a model-based reinforcement learning algorithm