# Planning and solving `pm.plan` returns the plan for a problem, `pm.solve` solves it, with the planner's plan or with yours, and `pm.load` reads a solution back from a file. ## Plan and solve ```{eval-rst} .. autofunction:: pdemagic.plan .. autofunction:: pdemagic.solve ``` ## The plan What a plan holds, entry by entry, is on the page of [the methods of a plan](methods-of-a-plan.md). ```{eval-rst} .. autoclass:: pdemagic.Plan :members: from_json, to_json, to_dict, copy ``` ## Solutions in files A solution is written by its method `save`, which is on the page of the [solution](solution.md). ```{eval-rst} .. autofunction:: pdemagic.load .. autoclass:: pdemagic.SavedProblem :members: to_json, to_dict ``` See also: [The planner and its plan](../topics/planner.md) and [Solutions](../topics/solutions.md).