Adaptive control method and adaptive controller for controlling energy supplied to a resonant tank