helper module

Define helper function for objectives.

by_element(objectives)[source]

Sort the provided objectives per Element.

Parameters:

objectives (Collection[Objective]) – Objectives you want the evaluation position from.

Return type:

dict[Element | Literal['all'], list[Objective]]

Returns:

Maps every Element at which at least one objective is evaluated to corresponding objectives.