Optimal Control and AGENT SYSTEMs