balance_calculator¶
- scml.scml2019.balance_calculator(worlds, scoring_context, dry_run, ignore_default=True)[source]¶
A scoring function that scores factory managers’ performance by the final balance only ignoring whatever still in their inventory.
- Parameters
worlds (
List
[SCML2019World
]) – The world which is assumed to be run up to the point at which the scores are to be calculated.scoring_context (
Dict
[str
,Any
]) – A dict of context parameters passed by the world generator or assigner.dry_run (
bool
) – A boolean specifying whether this is a dry_run. For dry runs, only names and types are expected in the returnedWorldRunResults
- Return type
WorldRunResults
- Returns
WorldRunResults giving the names, scores, and types of factory managers.