SMS: Dynamic optimization : the calculus of variations and optimal control in economics and management / Morton I. Kamien and Nancy L. Schwartz.