Title: On the application of optimal control theory to financial planning and forecasting