voiage.methods.dominance.calculate_strong_dominance
calculate_strong_dominance
Section titled “calculate_strong_dominance”calculate_strong_dominance([positional or keyword] costs: np.ndarray | list[float] = None, [positional or keyword] effects: np.ndarray | list[float] = None) -> list[int]Return indices of strongly dominated strategies.
Parameters
Section titled “Parameters”costs : numpy.ndarray or list[float] Strategy costs. effects : numpy.ndarray or list[float] Strategy effects.
Returns
Section titled “Returns”list[int] Indices of strategies that are more costly and no more effective than at least one alternative.
A strategy is strongly dominated if another strategy has cost less than or equal to it and effect greater than or equal to it, with at least one strict inequality.
Examples
Section titled “Examples”>>> import numpy as np >>> from voiage.methods.dominance import calculate_strong_dominance >>> calculate_strong_dominance(np.array([10.0, 12.0]), np.array([1.0, 0.9])) [1]
Parameters:
costsnp.ndarray | list[float]effectsnp.ndarray | list[float]
Returns: list[int]