A tunable dispersion compensator whose passband center wavelength changes
when the amount of dispersion compensation is changed is suitably
adjusted. The relationship between temperature for keeping the center
wavelength constant and the amount of dispersion compensation is stored
in advance. After controlling the amount of dispersion compensation to
achieve best or optimum transmission quality, the amount of dispersion
compensation is converted into temperature in accordance with the stored
relationship and, based on that, the temperature is controlled to keep
the center wavelength constant.