Optimization of operation of a three-electrode gyrotron with the use of a flow-type calorimeter.