The ActionScoringStrategies class contains boilerplate methods for determining the utility of an Action. These scoring strategies combine the scores of individual Considerations to determine the total utility of an Action.

Static methods

staticaverageSumConsiderationScores<ActionIdType, ConsiderationIdType, InputIdType> (action:Action<ActionIdType, ConsiderationIdType, InputIdType>):Float

Determines the utility of an action by taking the mean score of the considerations.

Parameters:

action

The action whose utility will be determined.

Returns:

The utility of the action.

staticmultiplyConsiderationScores<ActionIdType, ConsiderationIdType, InputIdType> (action:Action<ActionIdType, ConsiderationIdType, InputIdType>):Float

Determines the utility of an action by multiplying the scores of the considerations. Note that this exhibits odd behavior because actions with more considerations will tend to have lower scores due to normalized multiplication e.g. (0.9 * 0.9 is less than 0.9 * 0.9 * 0.9).

Parameters:

action

The action whose utility will be determined.

Returns:

The utility of the action.