8 Planning with Certainty

He who every morning plans the transaction of the day and follows out that plan, carries a thread that will guide him through the maze of the most busy life. But where no plan is laid, where the disposal of time is surrendered merely to the chance of incidence, chaos will soon reign.

- Victor Hugo (1802-1885)

Planning is about how an agent achieves its goals. To achieve anything but the simplest goals, an agent must reason about its future. Because an agent does not usually achieve its goals in one step, what it should do at any time depends on what it will do in the future. What it will do in the future depends on the state it is in, which, in turn, depends on what it has done in the past. This chapter considers how an agent can represent its actions and their effects and use these models to find a plan to achieve its goals.

In particular, this chapter considers the case where

  • the agent's actions are deterministic; that is, the agent can predict the consequences of its actions.
  • there are no exogenous events beyond the control of the agent that change the state of the world.
  • the world is fully observable; thus, the agent can observe the current state of the world.
  • time progresses discretely from one state to the next.
  • goals are predicates of states that must be achieved or maintained.

Some of these assumptions are relaxed in the following chapters.