Reinforcement Learning and Optimal Control in Complex Social Systems