Skip to content

Hard Constraints Not Enforcing Maximum Household Weights When USE_HARD_CONSTRAINTS = True #221

Description

@amsamimi

Description

TfNSW, RSG, and WSP collaborated on the Sydney ABM model development in 2026. As part of this project, we upgraded PopulationSim to v0.10 and enabled USE_HARD_CONSTRAINTS in the model settings. Based on our configuration:

  • Initial household weight ≈ 51 (Total Target HHs / Total Seed HHs)
  • max_expansion_factor = 50

We therefore expected the maximum allowable household weight to be approximately 51 × 50 = 2,550
However, the final synthesised population contains household weights as high as 53,910, which is more than 20 times the expected cap.
This suggests that the hard constraint mechanism may not be enforcing the maximum expansion factor as intended.

Why This Matters

This is potentially an important limitation for users who apply PopulationSim to expand Household Travel Survey (HTS) data.
Very large record weights can result in a small number of survey households representing a disproportionately large share of the expanded data. This may:

  • Increase sensitivity to individual records.
  • Reduce robustness of validation and calibration results.
  • Undermine one of the key purposes of applying weight caps.

Attachments

hh_weight_distribution.pdf
populationsim.log
settings_mp.yaml
settings.yaml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions