import math


def multi_to_single_objective(t, r):
    """
    transformation of multi-objective to single-objective
    the euclidean distance to the ideal state of 0,0
    :param t: tte_nrmse
    :param r: rec_nrmse
    """
    return math.sqrt(t ** 2 + r ** 2)