Transport-for-the-North / caf.distribute

https://cafdistribute.readthedocs.io/en/stable/
Other
0 stars 1 forks source link

Multi TLD gravity model cost distribution #44

Open Kieran-Fishwick-TfN opened 1 week ago

Kieran-Fishwick-TfN commented 1 week ago

change cost distribution paramters to this style

    cost_distribution: dict[int, cost_utils.CostDistribution]
    matrix_id_lookup: np.ndarray # 2d matrix mask of ids
    function_params: dict[int, dict[str,float]]
    cost function: CostFunction

this store all cost distributions for a MultiTLD GM run in one class and allows selection of cost distribution to be done at the cell level.

have multiple init wrapper for different situations e.g. selection based on origin and from different data types