Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

optimization.py

optimize_facility_locations(OD, facilities, p, existing_facilities=None, verbose=False, execute=True, write='')

Description:

Function for identifying spatially optimal locations of facilities (P-median problem)

Parameters:

Returns:


optimize_set_coverage(OD, max_coverage=2000, existing_facilities=None)

Description:

Determine the minimum number of facilities and their locations in order to cover all demands within a pre-specified maximum distance (or time) coverage (Location Set-Covering Problem).

Parameters:

Returns:


optimize_partial_set_coverage(OD, pop_coverage=0.8, max_coverage=2000, origins_pop_series=None, existing_facilities=None)

Description:

Function to determine the minimum number of facilities and their locations in order to cover a given fraction of the population within a pre-specified maximum distance (or time) coverage (Partial Set-Covering Problem). Do not use a demand-weighted OD matrix as an input.

Parameters:

Returns:


optimize_max_coverage(OD, p_facilities=5, max_coverage=2000, origins_pop_series=None, existing_facilities=None)

Description:

Determine the location of P facilities in order to maximize the demand covered within a pre-specified maximum distance coverage (Max Cover).

Parameters:

Returns: