Converts an age-gap specification into numeric lower and upper bounds.
Details
Age-gap specifications are used throughout the household generation workflow to define acceptable age differences between:
Partners.
Parents and children.
Supported formats include:
"20-30"
"-5-5"
"-10--5"
"-10-5"Positive values indicate that the comparison individual is expected to be older.
Negative values indicate that the comparison individual is expected to be younger.
Examples:
"20-30"Parent should be between 20 and 30 years older than the child.
"-5-5"Partner may be up to 5 years younger or 5 years older.
"-10--5"Partner should be between 5 and 10 years younger.
"-10-5"Partner may be up to 10 years younger or up to 5 years older.
Invalid age-gap strings generate an error.
