Adaptive temperature optimization of continuous anaerobic digesters