def METHOD_NAME(model_perf, compression_score, error_margin, baseline_perf):
    """
    :param model_perf: The accuracy of model
    :param compression_score: model compression ratio
    :param error_margin: permissible error
    :param baseline_perf: initial accuracy of model
    :return:
    """
    if model_perf + (error_margin / 100) >= baseline_perf:
        objective_score = 1 - model_perf + (1 - compression_score)
    else:
        objective_score = 1 + (1 - compression_score)  # treat lower accuracies as 0
    return objective_score