I am trying to formulate a problem that aims to prolong the lifetime of the simulation, the same as the Cartpole problem. I aware that there are two types of return:
- finite horizon undiscounted return (used for episodic problems)
$G = \sum_{t=0}^T R_t$
- infinite horizon discounted return (used for non-episodic problems).
$G = \sum_{t=0}^\infty \gamma^t R_t$
However, I'm confusing that "Is Cartpole episodic task?". Ideally, the simulation lasts forever. This is my final objective (prolonging the lifetime). But it still has some termination states. Should I introduce the termination state and use it with a discounted return like:
$G = \sum_{t=0}^T \gamma^t R_t$