1. An apparatus that plans a treatment that includes the spatially varying application of energy to an object by a treatment device, wherein the apparatus comprises a treatment planner that optimizes a characteristic of the treatment according to a treatment objective and a parameter of the treatment device according to a treatment device parameter objective.