and with a bounded memory or an infinite but fading memory. The optimal control problems