def dominance_degree_non_dominated_sort(
    f_scores: np.ndarray, strategy: Literal["efficient", "fast"] = "efficient"
) -> List[List[int]]:
    """Perform non-dominating sort with the specified algorithm."""
    if strategy == "efficient":
        return dda_ens(f_scores)
    if strategy == "fast":
        return dda_ns(f_scores)
    raise ValueError("Invalid search strategy")
Perform non-dominating sort with the specified algorithm.
pymoo/functions/standard/non_dominated_sorting.py