We propose a mathematical model of the human hypothalamus-anterior pituitary-thyroid system regulating basal metabolism, and practice computer simulation concerning primary thyropathy such as Graves' disease, hypothyroidism, T4-toxicosis and T3-toxicosis by use of this model. In order to throw light on properties of the system, indicial responses of the hormones, T4, T3, rT3, and TSH, and the function of the thyroid gland are computed. Medical treatments for Graves' disease and for hypothyroidism are simulated with a view to enhancing clinical significance. Performance of the simulation leads to an interesting result that when the convertion rate of blood T4 to blood T3 increases, explicit T3-toxicosis occurs, although the function of the thyroid gland is normal.