The amount of energy added by the formulation heating mechanism 45 or air-heating mechanism 5 is controlled by the microprocessor 26 based on the amount of formulation in the container 1 and other factors such as the concentration of the analgesic in the formulation and surrounding humidity.