Reinforcement Learning for Cyber-Physical Systems