create_default_pipeline#

bamengine.core.pipeline.create_default_pipeline(max_M, max_H, max_Z)[source]#

Create default BAM simulation event pipeline.

Loads the pipeline from config/default_pipeline.yml and substitutes market round parameters (max_M, max_H, max_Z).

The pipeline uses batch matching for labor and credit markets: labor_market_round repeated max_M times and credit_market_round repeated max_H times. The goods market uses goods_market_round which handles all visits internally.

Parameters:
  • max_M (int) – Number of labor market matching rounds.

  • max_H (int) – Number of credit market matching rounds.

  • max_Z (int) – Number of goods market shopping visits (passed to goods_market_round).

Returns:

Default BAM pipeline with all events in correct order.

Return type:

Pipeline

Notes

This function creates the “canonical” BAM pipeline. Users can modify it using insert_after(), remove(), replace() methods, or create their own pipeline from a custom YAML file using Pipeline.from_yaml().