Allocation¶
collegeplan.allocation
¶
Shared-fund allocation policies for multi-child households.
allocate_shared_withdrawal(policy, available_balance, child_needs, child_priority_order=None)
¶
Allocate shared pool funds to children for a single year.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
policy
|
AllocationPolicy
|
The allocation strategy to use. |
required |
available_balance
|
float
|
Current shared pool balance available for withdrawal. |
required |
child_needs
|
dict[str, float]
|
Mapping of child name to unfunded need for this year. |
required |
child_priority_order
|
list[str] | None
|
Names sorted oldest-first (lowest years_until_start). Required for OLDEST_FIRST policy. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, float]
|
Mapping of child name to allocated amount from the shared pool. |