Essays on Optimal Control of Dynamic Systems with Learning