SYMBOL INDEX (638 symbols across 47 files) FILE: docs/conf.py function setup (line 239) | def setup(app): FILE: spopt/BaseClass.py class BaseSpOptSolver (line 6) | class BaseSpOptSolver(ABC): method solve (line 10) | def solve(self): class BaseSpOptExactSolver (line 15) | class BaseSpOptExactSolver(BaseSpOptSolver): method __init__ (line 18) | def __init__(self, name): method solve (line 29) | def solve(self): class BaseSpOptHeuristicSolver (line 34) | class BaseSpOptHeuristicSolver(BaseSpOptSolver): method solve (line 38) | def solve(self): FILE: spopt/locate/base.py class SpecificationError (line 21) | class SpecificationError(pulp.PulpError): class LocateSolver (line 25) | class LocateSolver(BaseSpOptExactSolver): method __init__ (line 28) | def __init__(self, name: str, problem: pulp.LpProblem): method solve (line 34) | def solve(self, solver: pulp.LpSolver): method check_status (line 52) | def check_status(self): class BaseOutputMixin (line 64) | class BaseOutputMixin: method client_facility_array (line 67) | def client_facility_array(self) -> None: class CoveragePercentageMixin (line 98) | class CoveragePercentageMixin: method uncovered_clients (line 112) | def uncovered_clients(self) -> None: method get_percentage (line 139) | def get_percentage(self): class MeanDistanceMixin (line 150) | class MeanDistanceMixin: method get_mean_distance (line 155) | def get_mean_distance(self): class BackupPercentageMixinMixin (line 160) | class BackupPercentageMixinMixin: method get_percentage (line 166) | def get_percentage(self): class FacilityModelBuilder (line 174) | class FacilityModelBuilder: method add_facility_integer_variable (line 178) | def add_facility_integer_variable( method add_client_integer_variable (line 209) | def add_client_integer_variable( method add_client_assign_variable (line 240) | def add_client_assign_variable( method add_weight_continuous_variable (line 295) | def add_weight_continuous_variable(obj: T_FacModel) -> None: method add_maximized_min_variable (line 315) | def add_maximized_min_variable(obj: T_FacModel) -> None: method add_set_covering_constraint (line 334) | def add_set_covering_constraint( method add_backup_covering_constraint (line 374) | def add_backup_covering_constraint( method add_facility_constraint (line 427) | def add_facility_constraint(obj: T_FacModel, p_facilities: int) -> None: method add_predefined_facility_constraint (line 457) | def add_predefined_facility_constraint( method add_facility_capacity_constraint (line 542) | def add_facility_capacity_constraint( method add_client_demand_satisfaction_constraint (line 597) | def add_client_demand_satisfaction_constraint( method add_maximal_coverage_constraint (line 640) | def add_maximal_coverage_constraint( method add_assignment_constraint (line 684) | def add_assignment_constraint( method add_opening_constraint (line 723) | def add_opening_constraint( method add_minimized_maximum_constraint (line 767) | def add_minimized_maximum_constraint( method add_p_dispersion_interfacility_constraint (line 824) | def add_p_dispersion_interfacility_constraint( FILE: spopt/locate/coverage.py class LSCP (line 19) | class LSCP(LocateSolver, BaseOutputMixin): method __init__ (line 104) | def __init__(self, name: str, problem: pulp.LpProblem): method __add_obj (line 107) | def __add_obj(self) -> None: method from_cost_matrix (line 123) | def from_cost_matrix( method from_geodataframe (line 287) | def from_geodataframe( method facility_client_array (line 462) | def facility_client_array(self) -> None: method solve (line 490) | def solve(self, solver: pulp.LpSolver, results: bool = True): class LSCPB (line 519) | class LSCPB(LocateSolver, BaseOutputMixin, BackupPercentageMixinMixin): method __init__ (line 587) | def __init__( method __add_obj (line 596) | def __add_obj(self) -> None: method from_cost_matrix (line 612) | def from_cost_matrix( method from_geodataframe (line 748) | def from_geodataframe( method facility_client_array (line 905) | def facility_client_array(self) -> None: method solve (line 934) | def solve(self, results: bool = True): class MCLP (line 962) | class MCLP(LocateSolver, BaseOutputMixin, CoveragePercentageMixin): method __init__ (line 1025) | def __init__(self, name: str, problem: pulp.LpProblem): method __add_obj (line 1028) | def __add_obj(self, weights: np.array, range_clients: range) -> None: method from_cost_matrix (line 1048) | def from_cost_matrix( method from_geodataframe (line 1188) | def from_geodataframe( method facility_client_array (line 1362) | def facility_client_array(self) -> None: method solve (line 1392) | def solve(self, solver: pulp.LpSolver, results: bool = True): FILE: spopt/locate/flow.py class GreedyVariable (line 19) | class GreedyVariable: method __init__ (line 20) | def __init__(self, name, value): class GreedyConstraint (line 27) | class GreedyConstraint: method __init__ (line 28) | def __init__(self, name, info): class FlowModelBuilder (line 34) | class FlowModelBuilder: method add_facility_variables (line 41) | def add_facility_variables( method add_ac_pc_constraints (line 65) | def add_ac_pc_constraints( method add_flow_variables (line 116) | def add_flow_variables( method add_flow_coverage_constraints (line 156) | def add_flow_coverage_constraints( method add_capacity_constraints (line 197) | def add_capacity_constraints( method add_threshold_constraints (line 250) | def add_threshold_constraints( method add_combination_variables (line 321) | def add_combination_variables( method add_combination_refueling_constraints (line 346) | def add_combination_refueling_constraints( class FRLMCoverageMixin (line 373) | class FRLMCoverageMixin: method get_flow_coverage (line 376) | def get_flow_coverage(self) -> None: method get_vmt_coverage (line 430) | def get_vmt_coverage(self) -> dict[str, float]: class FRLMNodeCoverageMixin (line 453) | class FRLMNodeCoverageMixin: method calculate_covered_nodes (line 454) | def calculate_covered_nodes(self) -> None: method get_node_coverage_percentage (line 486) | def get_node_coverage_percentage(self) -> float: class FRLMSolverStatsMixin (line 495) | class FRLMSolverStatsMixin: method extract_solver_statistics (line 496) | def extract_solver_statistics(self) -> None: method get_detailed_results (line 536) | def get_detailed_results(self) -> dict: class FRLM (line 579) | class FRLM(FRLMCoverageMixin, FRLMNodeCoverageMixin, FRLMSolverStatsMixin): method __init__ (line 626) | def __init__( method _initialize_variables (line 690) | def _initialize_variables(self): method get_constraint_dual (line 701) | def get_constraint_dual(self, constraint_name: str) -> float | None: method from_flow_dataframe (line 705) | def from_flow_dataframe( method add_network (line 747) | def add_network(self, network: sp.csr_matrix): method add_flows (line 769) | def add_flows(self, flows: pd.DataFrame | dict[tuple[Any, Any], float]): method _reconstruct_path (line 797) | def _reconstruct_path( method add_flow (line 835) | def add_flow( method _load_flows_from_dict (line 898) | def _load_flows_from_dict(self, flows: dict[tuple[Any, Any], float]) -... method _load_flows_from_dataframe (line 923) | def _load_flows_from_dataframe( method _set_adaptive_vehicle_range (line 975) | def _set_adaptive_vehicle_range(self): method compute_refueling_frequency (line 1001) | def compute_refueling_frequency(self, origin: Any, destination: Any) -... method check_path_refueling_feasibility (line 1029) | def check_path_refueling_feasibility(self, path: list, facilities: lis... method generate_path_refueling_combinations (line 1086) | def generate_path_refueling_combinations( method calculate_node_weights (line 1190) | def calculate_node_weights(self, include_destination: bool = False) ->... method _calculate_objective_value (line 1223) | def _calculate_objective_value( method _build_model (line 1271) | def _build_model( method solve (line 1313) | def solve( method _solve_greedy (line 1384) | def _solve_greedy( method _build_pulp_model (line 1536) | def _build_pulp_model( method _update_pulp_variables_from_solution (line 1709) | def _update_pulp_variables_from_solution(self): method _evaluate_solution_with_combinations (line 1748) | def _evaluate_solution_with_combinations(self, facilities: dict[Any, i... method _solve_pulp (line 1885) | def _solve_pulp( method _evaluate_capacitated_solution (line 1934) | def _evaluate_capacitated_solution(self, facilities: dict[Any, int]) -... method _initialize_greedy_solution (line 2012) | def _initialize_greedy_solution(self, method: str) -> set: method _calculate_path_distances (line 2058) | def _calculate_path_distances(self): method get_solver_details (line 2071) | def get_solver_details(self) -> dict: method selected_facilities (line 2122) | def selected_facilities(self): method to_dataframes (line 2137) | def to_dataframes(self, include_iterations: bool = True) -> dict[str, ... method get_shadow_prices (line 2245) | def get_shadow_prices(self) -> dict[str, float]: method get_reduced_costs (line 2262) | def get_reduced_costs(self) -> dict[str, float]: method get_variable_values (line 2280) | def get_variable_values(self) -> dict[str, float]: method get_shadow_price (line 2283) | def get_shadow_price(self, constraint_name: str) -> float: method get_variable_value (line 2287) | def get_variable_value(self, var_name: str) -> float: method get_slack (line 2290) | def get_slack(self, constraint_name: str) -> float: method is_constraint_active (line 2295) | def is_constraint_active(self, constraint_name: str) -> bool: method _estimate_facility_shadow_price (line 2298) | def _estimate_facility_shadow_price(self) -> float: method problem (line 2321) | def problem(self): method _get_flow_details (line 2327) | def _get_flow_details(self) -> dict: method _get_constraint_details (line 2347) | def _get_constraint_details(self) -> dict: method _get_variable_details (line 2361) | def _get_variable_details(self) -> dict: method summary (line 2382) | def summary(self) -> dict: method __repr__ (line 2471) | def __repr__(self): FILE: spopt/locate/p_center.py class PCenter (line 13) | class PCenter(LocateSolver, BaseOutputMixin): method __init__ (line 77) | def __init__(self, name: str, problem: pulp.LpProblem, aij: np.array): method __add_obj (line 82) | def __add_obj(self) -> None: method from_cost_matrix (line 99) | def from_cost_matrix( method from_geodataframe (line 222) | def from_geodataframe( method facility_client_array (line 368) | def facility_client_array(self) -> None: method solve (line 397) | def solve(self, solver: pulp.LpSolver, results: bool = True): FILE: spopt/locate/p_dispersion.py class PDispersion (line 13) | class PDispersion(LocateSolver): method __init__ (line 58) | def __init__(self, name: str, problem: pulp.LpProblem, p_facilities: i... method __add_obj (line 62) | def __add_obj(self) -> None: method from_cost_matrix (line 79) | def from_cost_matrix( method from_geodataframe (line 195) | def from_geodataframe( method solve (line 315) | def solve(self, solver: pulp.LpSolver): FILE: spopt/locate/p_median.py class PMedian (line 21) | class PMedian(LocateSolver, BaseOutputMixin, MeanDistanceMixin): method __init__ (line 84) | def __init__( method __add_obj (line 96) | def __add_obj(self, range_clients: range, range_facility: range) -> None: method from_cost_matrix (line 130) | def from_cost_matrix( method from_geodataframe (line 315) | def from_geodataframe( method facility_client_array (line 488) | def facility_client_array(self) -> None: method solve (line 517) | def solve(self, solver: pulp.LpSolver, results: bool = True): class KNearestPMedian (line 547) | class KNearestPMedian(PMedian): method __init__ (line 632) | def __init__( method __add_obj (line 654) | def __add_obj( method from_cost_matrix (line 694) | def from_cost_matrix(cls, *args, **kwargs): method _create_sparse_matrix (line 703) | def _create_sparse_matrix(self) -> None: method _update_k_array (line 756) | def _update_k_array(self) -> None: method _from_sparse_matrix (line 779) | def _from_sparse_matrix(self) -> None: method from_geodataframe (line 856) | def from_geodataframe( method facility_client_array (line 999) | def facility_client_array(self) -> None: method solve (line 1027) | def solve(self, solver: pulp.LpSolver, results: bool = True): FILE: spopt/locate/util.py function simulated_geo_points (line 10) | def simulated_geo_points( function rising_combination (line 109) | def rising_combination( function compute_facility_usage (line 141) | def compute_facility_usage( FILE: spopt/region/azp.py class AZP (line 45) | class AZP(BaseSpOptHeuristicSolver): method __init__ (line 128) | def __init__( method solve (line 148) | def solve(self): class AZPOrig (line 164) | class AZPOrig: method __init__ (line 177) | def __init__(self, allow_move_strategy=None, random_state=None): method fit_from_scipy_sparse_matrix (line 208) | def fit_from_scipy_sparse_matrix( method fit_from_w (line 276) | def fit_from_w( method fit_from_networkx (line 313) | def fit_from_networkx( method fit_from_geodataframe (line 367) | def fit_from_geodataframe( method fit_from_dict (line 415) | def fit_from_dict( method _azp_connected_component (line 461) | def _azp_connected_component(self, adj, initial_clustering, attr): # ... class AZPSimulatedAnnealing (line 589) | class AZPSimulatedAnnealing: method __init__ (line 602) | def __init__( method fit_from_geodataframe (line 658) | def fit_from_geodataframe( method fit_from_dict (line 707) | def fit_from_dict( method fit_from_networkx (line 757) | def fit_from_networkx( method fit_from_scipy_sparse_matrix (line 807) | def fit_from_scipy_sparse_matrix( method fit_from_w (line 893) | def fit_from_w( method sa_moves_alert (line 938) | def sa_moves_alert(self): method move_made_alert (line 941) | def move_made_alert(self): class AZPTabu (line 945) | class AZPTabu(AZP, abc.ABC): method _make_move (line 950) | def _make_move(self, area, new_region, labels, adj): method reset_tabu (line 966) | def reset_tabu(self, tabu_len=None): class AZPBasicTabu (line 971) | class AZPBasicTabu(AZPTabu): method __init__ (line 984) | def __init__( method _azp_connected_component (line 1007) | def _azp_connected_component(self, adj, initial_clustering, attr): class AZPReactiveTabu (line 1132) | class AZPReactiveTabu(AZPTabu): method __init__ (line 1145) | def __init__(self, max_iterations, k1, k2, random_state=None): method _azp_connected_component (line 1179) | def _azp_connected_component(self, adj, initial_labels, attr): FILE: spopt/region/azp_util.py class AllowMoveStrategy (line 9) | class AllowMoveStrategy(abc.ABC): method start_new_component (line 10) | def start_new_component( method __call__ (line 41) | def __call__(self, moving_area, new_region, labels): class AllowMoveAZP (line 66) | class AllowMoveAZP(AllowMoveStrategy): method __call__ (line 67) | def __call__(self, moving_area, new_region, labels): class AllowMoveAZPSimulatedAnnealing (line 76) | class AllowMoveAZPSimulatedAnnealing(AllowMoveStrategy): method __init__ (line 77) | def __init__(self, init_temperature, sa_moves_term=float("inf")): method __call__ (line 87) | def __call__(self, moving_area, new_region, labels): method register_sa_moves_term (line 105) | def register_sa_moves_term(self, observer_func): method register_move_made (line 118) | def register_move_made(self, observer_func): method notify_min_sa_moves (line 130) | def notify_min_sa_moves(self): method notify_move_made (line 134) | def notify_move_made(self): method update_temperature (line 138) | def update_temperature(self, temp): method reset (line 141) | def reset(self): class AllowMoveAZPMaxPRegions (line 145) | class AllowMoveAZPMaxPRegions(AllowMoveStrategy): method __init__ (line 154) | def __init__(self, spatially_extensive_attr, threshold, decorated_stra... method start_new_component (line 171) | def start_new_component(self, initial_labels, attr, objective_func, co... method __call__ (line 178) | def __call__(self, moving_area, new_region, labels): method __getattr__ (line 198) | def __getattr__(self, name): FILE: spopt/region/base.py class RegionMixin (line 11) | class RegionMixin: method solve_assign (line 16) | def solve_assign(self, X, adjacency): # noqa: N803 function w_to_g (line 35) | def w_to_g(w): function move_ok (line 59) | def move_ok(area, source, destination, g, w): function ok_moves (line 98) | def ok_moves(candidates, regions, labels_, closest, g, w, areas): function region_neighbors (line 137) | def region_neighbors(a_list, region): function _centroid (line 162) | def _centroid(regions, data): function _closest (line 185) | def _closest(data, centroids): function _seeds (line 208) | def _seeds(areas, k, seed): function is_neighbor (line 234) | def is_neighbor(area, region, w): function infeasible_components (line 263) | def infeasible_components(gdf, w, threshold_var, threshold): function plot_components (line 298) | def plot_components(gdf, w): function modify_components (line 321) | def modify_components(gdf, w, threshold_var, threshold, policy="single"): function form_single_component (line 386) | def form_single_component(gdf, w, linkage="single"): FILE: spopt/region/components.py function is_component (line 13) | def is_component(w, ids): function check_contiguity (line 54) | def check_contiguity(w, neighbors, leaver): class Graph (line 107) | class Graph: method __init__ (line 108) | def __init__(self, undirected=True): method add_edge (line 115) | def add_edge(self, n1, n2, w): method connected_components (line 122) | def connected_components(self, threshold=0.9, op=lt): method dfs (line 149) | def dfs(self, v, visited, threshold, op=lt, first=None): FILE: spopt/region/csgraph_utils.py function is_connected (line 13) | def is_connected(adj): function neighbors (line 50) | def neighbors(adj, area): function sub_adj_matrix (line 85) | def sub_adj_matrix(adj, nodes, wo_nodes=None): FILE: spopt/region/maxp.py function maxp (line 24) | def maxp( function _construction_phase (line 155) | def _construction_phase( function _grow_cluster_for_poly (line 279) | def _grow_cluster_for_poly( function _assign_enclave (line 341) | def _assign_enclave( function _calculate_within_region_distance (line 425) | def _calculate_within_region_distance(region_list, distance_matrix): function _pick_move_area (line 454) | def _pick_move_area( function _check_move (line 515) | def _check_move( function _perform_sa (line 580) | def _perform_sa( class MaxPHeuristic (line 715) | class MaxPHeuristic(BaseSpOptHeuristicSolver): method __init__ (line 810) | def __init__( method solve (line 834) | def solve(self): FILE: spopt/region/objective_function.py class ObjectiveFunction (line 9) | class ObjectiveFunction(ABC): method __init__ (line 10) | def __init__(self, metric=None): method __call__ (line 23) | def __call__(self, labels, attr): method update (line 45) | def update(self, moving_area, recipient_region, labels, attr): class ObjectiveFunctionPairwise (line 72) | class ObjectiveFunctionPairwise(ObjectiveFunction): method __call__ (line 73) | def __call__(self, labels, attr): method update (line 95) | def update(self, moving_area, recipient_region, labels, attr): class ObjectiveFunctionCenter (line 108) | class ObjectiveFunctionCenter(ObjectiveFunction): method __init__ (line 109) | def __init__(self, metric=None, center=np.mean, reduction=np.sum): method __call__ (line 131) | def __call__(self, labels, attr): method _intraregional_heterogeneity (line 156) | def _intraregional_heterogeneity(self, labels, region, attr): method update (line 165) | def update(self, moving_area, recipient_region, labels, attr): FILE: spopt/region/random_region.py class RandomRegions (line 19) | class RandomRegions: method __init__ (line 133) | def __init__( class RandomRegion (line 164) | class RandomRegion: method __init__ (line 272) | def __init__( method get_num_regions (line 353) | def get_num_regions(self): method get_region_breaks (line 356) | def get_region_breaks(self, num_regions): method get_cards (line 364) | def get_cards(self, num_regions): method cards2breaks (line 374) | def cards2breaks(self, cards): method build_noncontig_regions (line 383) | def build_noncontig_regions(self, num_regions, region_breaks): # noqa... method grow_compact (line 390) | def grow_compact(self, w, test_card, region, candidates, potential): method grow_free (line 411) | def grow_free(self, w, test_card, region, candidates, potential): # n... method build_contig_regions (line 428) | def build_contig_regions( FILE: spopt/region/region_k_means.py function region_k_means (line 28) | def region_k_means(X, n_clusters, w, drop_islands=True, seed=0): # noqa... class RegionKMeansHeuristic (line 132) | class RegionKMeansHeuristic(BaseSpOptHeuristicSolver): method __init__ (line 165) | def __init__(self, data, n_clusters, w, drop_islands=True, seed=0): method solve (line 172) | def solve(self): FILE: spopt/region/sa3.py function extract_clusters (line 9) | def extract_clusters(linkage_matrix, min_cluster_size, extraction="eom"): class SA3 (line 66) | class SA3(BaseSpOptHeuristicSolver): method __init__ (line 100) | def __init__( method solve (line 123) | def solve(self): method _get_tree (line 189) | def _get_tree(self, training_data, clustering_graph, clustering_kwds): FILE: spopt/region/skater.py class SpanningForest (line 18) | class SpanningForest: method __init__ (line 19) | def __init__( method __repr__ (line 77) | def __repr__(self): method fit (line 83) | def fit( method score (line 234) | def score(self, data, labels=None, quorum=-np.inf): method find_cut (line 292) | def find_cut( method make_cut (line 395) | def make_cut(self, in_node, out_node, score, MSF=None): class Skater (line 425) | class Skater(BaseSpOptHeuristicSolver): method __init__ (line 518) | def __init__( method solve (line 538) | def solve(self): FILE: spopt/region/spenc.py class Spenc (line 8) | class Spenc(BaseSpOptHeuristicSolver): method __init__ (line 36) | def __init__( method solve (line 176) | def solve(self, fit_kwargs=dict()): FILE: spopt/region/spenclib/abstracts.py class SPENC (line 21) | class SPENC(clust.SpectralClustering): method __init__ (line 22) | def __init__( method fit (line 189) | def fit( method _embed (line 320) | def _embed(self, affinity, shift_invert=True): method _spectral_bipartition (line 357) | def _spectral_bipartition( method _make_hierarchical_cut (line 455) | def _make_hierarchical_cut( method score (line 500) | def score( method _sample_gen (line 548) | def _sample_gen(self, W, n_samples=1, distribution=None, **fit_kw): method sample (line 584) | def sample(self, W, n_samples=1, distribution=None, **fit_kw): class AgglomerativeClustering (line 629) | class AgglomerativeClustering(clust.AgglomerativeClustering): method _sample_gen (line 630) | def _sample_gen(self, n_samples=25, distribution=None): method sample (line 645) | def sample(self, n_samples=1, distribution=None): FILE: spopt/region/spenclib/scores.py function boundary_fraction (line 6) | def boundary_fraction(W, labels): function boundary_score (line 15) | def boundary_score(W, labels): FILE: spopt/region/spenclib/utils.py function check_weights (line 10) | def check_weights(W, X=None): function lattice (line 27) | def lattice(x, y): FILE: spopt/region/util.py function array_from_dict_values (line 21) | def array_from_dict_values(dct, sorted_keys=None, flat_output=False, dty... function scipy_sparse_matrix_from_dict (line 87) | def scipy_sparse_matrix_from_dict(neighbors): function scipy_sparse_matrix_from_w (line 146) | def scipy_sparse_matrix_from_w(w): function dict_from_graph_attr (line 179) | def dict_from_graph_attr(graph, attr, array_values=False): function array_from_graph (line 239) | def array_from_graph(graph, attr): function array_from_graph_or_dict (line 285) | def array_from_graph_or_dict(graph, attr): function array_from_region_list (line 297) | def array_from_region_list(region_list): function array_from_df_col (line 329) | def array_from_df_col(df, attr): function w_from_gdf (line 379) | def w_from_gdf(gdf, contiguity): function dataframe_to_dict (line 411) | def dataframe_to_dict(df, cols): function find_sublist_containing (line 451) | def find_sublist_containing(el, lst, index=False): function get_metric_function (line 500) | def get_metric_function(metric=None): class MissingMetricError (line 559) | class MissingMetricError(RuntimeError): function raise_distance_metric_not_set (line 563) | def raise_distance_metric_not_set(x, y): function make_move (line 567) | def make_move(moving_area, new_label, labels): function distribute_regions_among_components (line 595) | def distribute_regions_among_components(component_labels, n_regions): function generate_initial_sol (line 646) | def generate_initial_sol(adj, n_regions): function _randomly_divide_connected_graph (line 703) | def _randomly_divide_connected_graph(adj, n_regions): function copy_func (line 772) | def copy_func(f): function assert_feasible (line 802) | def assert_feasible(solution, adj, n_regions=None): function boolean_assert_feasible (line 837) | def boolean_assert_feasible(solution, adj, n_regions=None): function all_elements_equal (line 854) | def all_elements_equal(array): function separate_components (line 858) | def separate_components(adj, labels): function random_element_from (line 921) | def random_element_from(lst): function pop_randomly_from (line 926) | def pop_randomly_from(lst): function count (line 931) | def count(arr, el): function check_solver (line 974) | def check_solver(solver): function get_solver_instance (line 982) | def get_solver_instance(solver_string): FILE: spopt/region/ward.py class WardSpatial (line 8) | class WardSpatial(BaseSpOptHeuristicSolver): method __init__ (line 73) | def __init__(self, gdf, w, attrs_name, n_clusters=5, clustering_kwds=d... method solve (line 80) | def solve(self): FILE: spopt/tests/conftest.py function locate_dirpath (line 19) | def locate_dirpath() -> pathlib.Path: function load_locate_test_data (line 25) | def load_locate_test_data(): function network_instance (line 43) | def network_instance(): function loc_warns_geo_crs (line 130) | def loc_warns_geo_crs(): function loc_warns_mixed_type_dem (line 136) | def loc_warns_mixed_type_dem(): function loc_warns_mixed_type_fac (line 142) | def loc_warns_mixed_type_fac(): function loc_raises_diff_crs (line 148) | def loc_raises_diff_crs(): function loc_raises_infeasible (line 154) | def loc_raises_infeasible(): function loc_raises_fac_constr (line 160) | def loc_raises_fac_constr(): function toy_fac_data (line 166) | def toy_fac_data() -> geopandas.GeoDataFrame: function toy_dem_data (line 177) | def toy_dem_data() -> tuple[ FILE: spopt/tests/test_locate/test_c_p_median.py class TestSyntheticLocate (line 9) | class TestSyntheticLocate: method setup_method (line 11) | def setup_method(self, network_instance) -> None: method test_c_p_median_from_cost_matrix (line 19) | def test_c_p_median_from_cost_matrix(self): method test_c_p_median_with_predefined_facilities_from_cost_matrix (line 39) | def test_c_p_median_with_predefined_facilities_from_cost_matrix(self): method test_c_p_median_with_predefined_facilities_infeasible (line 62) | def test_c_p_median_with_predefined_facilities_infeasible( class TestRealWorldLocate (line 80) | class TestRealWorldLocate: method setup_method (line 82) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_capacitated_pmedian_with_predefined_facilities (line 110) | def test_optimality_capacitated_pmedian_with_predefined_facilities(self): method test_infeasibility_capacitated_pmedian (line 122) | def test_infeasibility_capacitated_pmedian(self, loc_raises_infeasible): method test_mixin_mean_time (line 129) | def test_mixin_mean_time(self): method test_infeasibility_predefined_facilities_fulfillment_error (line 142) | def test_infeasibility_predefined_facilities_fulfillment_error(self): method test_no_capacity_data_predefined_facilities_error (line 162) | def test_no_capacity_data_predefined_facilities_error(self): method test_infeasibility_capacity_smaller_than_demand_error (line 178) | def test_infeasibility_capacity_smaller_than_demand_error(self): FILE: spopt/tests/test_locate/test_clscp-so.py class TestSyntheticLocate (line 9) | class TestSyntheticLocate: method setup_method (line 11) | def setup_method(self, network_instance) -> None: method test_clscpso_y1_lt_y2 (line 19) | def test_clscpso_y1_lt_y2(self): method test_clscpso_y1_gt_y2 (line 40) | def test_clscpso_y1_gt_y2(self): method test_clscpso_y1_eq_y2 (line 61) | def test_clscpso_y1_eq_y2(self): method test_clscpso_dem_gt_cap_error (line 82) | def test_clscpso_dem_gt_cap_error(self): method test_clscpso_infease_error (line 96) | def test_clscpso_infease_error(self, loc_raises_infeasible): FILE: spopt/tests/test_locate/test_flow.py function load_grid_test_data (line 14) | def load_grid_test_data(): class TestFRLMBasicFunctionality (line 22) | class TestFRLMBasicFunctionality: method setup_simple_network (line 24) | def setup_simple_network(self): method setup_grid_network (line 30) | def setup_grid_network(self): method test_basic_initialization (line 33) | def test_basic_initialization(self): method test_vehicle_range_percentage (line 43) | def test_vehicle_range_percentage(self, setup_simple_network): method test_ac_pc_approach (line 57) | def test_ac_pc_approach(self, setup_grid_network): method test_combination_approach (line 72) | def test_combination_approach(self, setup_grid_network): class TestFRLMObjectives (line 86) | class TestFRLMObjectives: method setup_network_with_distances (line 88) | def setup_network_with_distances(self): method test_flow_objective (line 100) | def test_flow_objective(self, setup_network_with_distances): method test_vmt_objective (line 114) | def test_vmt_objective(self, setup_network_with_distances): class TestFRLMThresholdExtension (line 134) | class TestFRLMThresholdExtension: method setup_threshold_network (line 136) | def setup_threshold_network(self): method test_threshold_basic (line 140) | def test_threshold_basic(self, setup_threshold_network): method test_threshold_weight_impact (line 166) | def test_threshold_weight_impact(self, setup_threshold_network): method test_include_destination_parameter (line 191) | def test_include_destination_parameter(self, setup_threshold_network): class TestFRLMGreedySolver (line 223) | class TestFRLMGreedySolver: method setup_greedy_network (line 225) | def setup_greedy_network(self): method test_greedy_initialization_methods (line 230) | def test_greedy_initialization_methods(self, setup_greedy_network): method test_greedy_iterations_tracking (line 250) | def test_greedy_iterations_tracking(self, setup_greedy_network): method test_greedy_capacitated (line 269) | def test_greedy_capacitated(self, setup_greedy_network): method test_greedy_no_feasible_solution (line 283) | def test_greedy_no_feasible_solution(self, setup_greedy_network): class TestFRLMErrorHandling (line 295) | class TestFRLMErrorHandling: method test_no_network_error (line 296) | def test_no_network_error(self): method test_no_flows_error (line 303) | def test_no_flows_error(self): method test_invalid_node_ids (line 311) | def test_invalid_node_ids(self): method test_disconnected_path (line 319) | def test_disconnected_path(self): method test_invalid_parameters (line 327) | def test_invalid_parameters(self): class TestFRLMOutputsAndReporting (line 345) | class TestFRLMOutputsAndReporting: method setup_solved_model (line 347) | def setup_solved_model(self): method test_summary_output (line 358) | def test_summary_output(self, setup_solved_model): method test_dataframe_export (line 377) | def test_dataframe_export(self, setup_solved_model): method test_solver_details (line 394) | def test_solver_details(self, setup_solved_model): method test_shadow_prices_and_reduced_costs (line 403) | def test_shadow_prices_and_reduced_costs(self, setup_solved_model): method test_detailed_results (line 415) | def test_detailed_results(self, setup_solved_model): class TestFRLMCustomPaths (line 430) | class TestFRLMCustomPaths: method test_custom_paths_basic (line 431) | def test_custom_paths_basic(self): method test_invalid_custom_paths (line 464) | def test_invalid_custom_paths(self): FILE: spopt/tests/test_locate/test_knearest_p_median.py class TestKNearestPMedian (line 13) | class TestKNearestPMedian: method setup_method (line 14) | def setup_method(self) -> None: method test_knearest_p_median_from_geodataframe (line 41) | def test_knearest_p_median_from_geodataframe(self): method test_knearest_p_median_from_geodataframe_no_results (line 45) | def test_knearest_p_median_from_geodataframe_no_results(self): method test_solve (line 56) | def test_solve(self): method test_error_overflow_k (line 67) | def test_error_overflow_k(self): method test_error_k_array_non_numpy_array (line 81) | def test_error_k_array_non_numpy_array(self): method test_error_k_array_invalid_value (line 95) | def test_error_k_array_invalid_value(self): method test_error_no_crs_demand (line 109) | def test_error_no_crs_demand(self): method test_error_no_crs_facility (line 124) | def test_error_no_crs_facility(self): method test_error_geodataframe_crs_mismatch (line 139) | def test_error_geodataframe_crs_mismatch(self, loc_raises_diff_crs): method test_error_high_capacity (line 154) | def test_error_high_capacity(self): FILE: spopt/tests/test_locate/test_locate_util.py class TestSimulatedGeoPoints (line 6) | class TestSimulatedGeoPoints: method setup_method (line 8) | def setup_method(self, network_instance) -> None: method test_from_polygon (line 21) | def test_from_polygon(self): method test_from_polygons_geoseries (line 30) | def test_from_polygons_geoseries(self): method test_from_multipolygon (line 41) | def test_from_multipolygon(self): method test_from_multipolygon_geoseries (line 50) | def test_from_multipolygon_geoseries(self): method test_error_indata (line 61) | def test_error_indata(self): method test_error_neq_needed (line 68) | def test_error_neq_needed(self): method test_error_flt_needed (line 73) | def test_error_flt_needed(self): method test_error_neg_seed (line 78) | def test_error_neg_seed(self): method test_error_flt_seed (line 83) | def test_error_flt_seed(self): FILE: spopt/tests/test_locate/test_lscp.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_lscp_from_cost_matrix (line 20) | def test_lscp_from_cost_matrix(self): method test_lscp_from_cost_matrix_no_results (line 25) | def test_lscp_from_cost_matrix_no_results(self): method test_lscp_facility_client_array_from_cost_matrix (line 35) | def test_lscp_facility_client_array_from_cost_matrix(self, load_locate... method test_lscp_client_facility_array_from_cost_matrix (line 46) | def test_lscp_client_facility_array_from_cost_matrix(self, load_locate... method test_lscp_from_geodataframe (line 57) | def test_lscp_from_geodataframe(self): method test_lscp_facility_client_array_from_geodataframe (line 64) | def test_lscp_facility_client_array_from_geodataframe(self, load_locat... method test_lscp_client_facility_array_from_geodataframe (line 81) | def test_lscp_client_facility_array_from_geodataframe(self, load_locat... method test_lscp_preselected_facility_client_array_from_geodataframe (line 98) | def test_lscp_preselected_facility_client_array_from_geodataframe( class TestRealWorldLSCP (line 125) | class TestRealWorldLSCP: method setup_method (line 127) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_lscp_from_cost_matrix (line 169) | def test_optimality_lscp_from_cost_matrix(self): method test_infeasibility_lscp_from_cost_matrix (line 175) | def test_infeasibility_lscp_from_cost_matrix(self, loc_raises_infeasib... method test_optimality_lscp_from_geodataframe (line 180) | def test_optimality_lscp_from_geodataframe(self): method test_infeasibility_lscp_from_geodataframe (line 191) | def test_infeasibility_lscp_from_geodataframe(self, loc_raises_infeasi... class TestErrorsWarnings (line 203) | class TestErrorsWarnings: method setup_method (line 205) | def setup_method(self, toy_fac_data, toy_dem_data) -> None: method test_attribute_error_add_set_covering_constraint (line 213) | def test_attribute_error_add_set_covering_constraint(self): method test_error_lscp_different_crs (line 222) | def test_error_lscp_different_crs( method test_warning_lscp_demand_geodataframe (line 230) | def test_warning_lscp_demand_geodataframe( FILE: spopt/tests/test_locate/test_lscpb.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_lscpb_from_cost_matrix (line 24) | def test_lscpb_from_cost_matrix(self): method test_lscpb_from_cost_matrix_no_results (line 32) | def test_lscpb_from_cost_matrix_no_results(self): method test_lscpb_facility_client_array_from_cost_matrix (line 46) | def test_lscpb_facility_client_array_from_cost_matrix(self, load_locat... method test_lscpb_client_facility_array_from_cost_matrix (line 59) | def test_lscpb_client_facility_array_from_cost_matrix(self, load_locat... method test_lscpb_from_geodataframe (line 72) | def test_lscpb_from_geodataframe(self): method test_lscpb_facility_client_array_from_geodataframe (line 85) | def test_lscpb_facility_client_array_from_geodataframe(self, load_loca... method test_lscpb_client_facility_array_from_geodataframe (line 103) | def test_lscpb_client_facility_array_from_geodataframe(self, load_loca... method test_lscpb_preselected_facility_client_array_from_geodataframe (line 121) | def test_lscpb_preselected_facility_client_array_from_geodataframe( class TestRealWorldLocate (line 148) | class TestRealWorldLocate: method setup_method (line 150) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_lscpb_from_cost_matrix (line 192) | def test_optimality_lscpb_from_cost_matrix(self): method test_infeasibility_lscpb_from_cost_matrix (line 200) | def test_infeasibility_lscpb_from_cost_matrix(self, loc_raises_infeasi... method test_mixin_lscpb_get_percentage (line 207) | def test_mixin_lscpb_get_percentage(self): method test_optimality_lscpb_from_geodataframe (line 216) | def test_optimality_lscpb_from_geodataframe(self): method test_infeasibility_lscpb_from_geodataframe (line 229) | def test_infeasibility_lscpb_from_geodataframe(self, loc_raises_infeas... class TestErrorsWarnings (line 242) | class TestErrorsWarnings: method setup_method (line 244) | def setup_method(self, toy_fac_data, toy_dem_data) -> None: method test_error_lscpb_different_crs (line 252) | def test_error_lscpb_different_crs( method test_warning_lscpb_demand_geodataframe (line 265) | def test_warning_lscpb_demand_geodataframe( method test_attribute_error_add_backup_covering_constraint (line 278) | def test_attribute_error_add_backup_covering_constraint(self): FILE: spopt/tests/test_locate/test_mclp.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_mclp_from_cost_matrix (line 24) | def test_mclp_from_cost_matrix(self): method test_mclp_from_cost_matrix_no_results (line 34) | def test_mclp_from_cost_matrix_no_results(self): method test_mclp_facility_client_array_from_cost_matrix (line 51) | def test_mclp_facility_client_array_from_cost_matrix(self, load_locate... method test_mclp_client_facility_array_from_cost_matrix (line 67) | def test_mclp_client_facility_array_from_cost_matrix(self, load_locate... method test_mclp_from_geodataframe (line 83) | def test_mclp_from_geodataframe(self): method test_mclp_facility_client_array_from_geodataframe (line 96) | def test_mclp_facility_client_array_from_geodataframe(self, load_locat... method test_mclp_preselected_facility_client_array_from_geodataframe (line 115) | def test_mclp_preselected_facility_client_array_from_geodataframe( method test_mclp_client_facility_array_from_geodataframe (line 143) | def test_mclp_client_facility_array_from_geodataframe(self, load_locat... class TestRealWorldLocate (line 163) | class TestRealWorldLocate: method setup_method (line 165) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_mclp_from_cost_matrix (line 207) | def test_optimality_mclp_from_cost_matrix(self): method test_infeasibility_mclp_from_cost_matrix (line 217) | def test_infeasibility_mclp_from_cost_matrix(self, loc_raises_infeasib... method test_mixin_mclp_get_uncovered_clients (line 227) | def test_mixin_mclp_get_uncovered_clients(self): method test_mixin_mclp_get_percentage (line 239) | def test_mixin_mclp_get_percentage(self): method test_optimality_mclp_from_geodataframe (line 251) | def test_optimality_mclp_from_geodataframe(self): method test_infeasibility_mclp_from_geodataframe (line 264) | def test_infeasibility_mclp_from_geodataframe(self, loc_raises_infeasi... method test_attribute_error_fac2cli_mclp_facility_client_array (line 277) | def test_attribute_error_fac2cli_mclp_facility_client_array(self): method test_attribute_error_cli2fac_mclp_facility_client_array (line 294) | def test_attribute_error_cli2fac_mclp_facility_client_array(self): method test_attribute_error_ncliuncov_mclp_facility_client_array (line 311) | def test_attribute_error_ncliuncov_mclp_facility_client_array(self): method test_attribute_error_percentage_mclp_facility_client_array (line 328) | def test_attribute_error_percentage_mclp_facility_client_array(self): class TestErrorsWarnings (line 346) | class TestErrorsWarnings: method setup_method (line 348) | def setup_method(self, toy_fac_data, toy_dem_data) -> None: method test_attribute_error_add_facility_constraint (line 356) | def test_attribute_error_add_facility_constraint(self, loc_raises_fac_... method test_attribute_error_add_maximal_coverage_constraint (line 362) | def test_attribute_error_add_maximal_coverage_constraint(self): method test_error_mclp_different_crs (line 373) | def test_error_mclp_different_crs( method test_warning_mclp_demand_geodataframe (line 387) | def test_warning_mclp_demand_geodataframe( FILE: spopt/tests/test_locate/test_p_center.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_p_center_from_cost_matrix (line 20) | def test_p_center_from_cost_matrix(self): method test_p_center_from_cost_matrix_no_results (line 25) | def test_p_center_from_cost_matrix_no_results(self): method test_pcenter_facility_client_array_from_cost_matrix (line 35) | def test_pcenter_facility_client_array_from_cost_matrix( method test_p_center_from_geodataframe (line 48) | def test_p_center_from_geodataframe(self): method test_pcenter_facility_client_array_from_geodataframe (line 59) | def test_pcenter_facility_client_array_from_geodataframe( method test_pcenter_client_facility_array_from_geodataframe (line 78) | def test_pcenter_client_facility_array_from_geodataframe( method test_pcenter_preselected_facility_client_array_from_geodataframe (line 97) | def test_pcenter_preselected_facility_client_array_from_geodataframe(s... class TestRealWorldLocate (line 124) | class TestRealWorldLocate: method setup_method (line 126) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_pcenter_from_cost_matrix (line 168) | def test_optimality_pcenter_from_cost_matrix(self): method test_infeasibility_pcenter_from_cost_matrix (line 173) | def test_infeasibility_pcenter_from_cost_matrix(self, loc_raises_infea... method test_optimality_pcenter_from_geodataframe (line 178) | def test_optimality_pcenter_from_geodataframe(self): method test_infeasibility_pcenter_from_geodataframe (line 189) | def test_infeasibility_pcenter_from_geodataframe(self, loc_raises_infe... class TestErrorsWarnings (line 201) | class TestErrorsWarnings: method setup_method (line 203) | def setup_method(self, toy_fac_data, toy_dem_data) -> None: method test_attribute_error_add_minimized_maximum_constraint (line 211) | def test_attribute_error_add_minimized_maximum_constraint(self): method test_error_pcenter_different_crs (line 222) | def test_error_pcenter_different_crs( method test_warning_pcenter_demand_geodataframe (line 230) | def test_warning_pcenter_demand_geodataframe( FILE: spopt/tests/test_locate/test_p_dispersion.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_p_dispersion_from_cost_matrix (line 18) | def test_p_dispersion_from_cost_matrix(self): method test_p_dispersion_from_cost_matrix_no_results (line 23) | def test_p_dispersion_from_cost_matrix_no_results(self): method test_p_dispersion_from_geodataframe (line 33) | def test_p_dispersion_from_geodataframe(self): method test_p_dispersion_preselected_facility_array_from_geodataframe (line 42) | def test_p_dispersion_preselected_facility_array_from_geodataframe(self): class TestRealWorldLocate (line 70) | class TestRealWorldLocate: method setup_method (line 72) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_p_dispersion_from_cost_matrix (line 99) | def test_optimality_p_dispersion_from_cost_matrix(self): method test_infeasibility_p_dispersion_from_cost_matrix (line 110) | def test_infeasibility_p_dispersion_from_cost_matrix(self, loc_raises_... method test_optimality_p_dispersion_from_geodataframe (line 115) | def test_optimality_p_dispersion_from_geodataframe(self): method test_infeasibility_p_dispersion_from_geodataframe (line 130) | def test_infeasibility_p_dispersion_from_geodataframe(self, loc_raises... class TestErrorsWarnings (line 140) | class TestErrorsWarnings: method setup_method (line 142) | def setup_method(self, toy_fac_data) -> None: method test_attribute_error_add_facility_constraint (line 145) | def test_attribute_error_add_facility_constraint(self, loc_raises_fac_... method test_attribute_error_add_p_dispersion_interfacility_constraint (line 151) | def test_attribute_error_add_p_dispersion_interfacility_constraint(self): method test_attribute_error_add_predefined_facility_constraint (line 165) | def test_attribute_error_add_predefined_facility_constraint( method test_warning_facility_geodataframe (line 174) | def test_warning_facility_geodataframe( FILE: spopt/tests/test_locate/test_p_median.py class TestSyntheticLocate (line 10) | class TestSyntheticLocate: method setup_method (line 12) | def setup_method(self, network_instance) -> None: method test_p_median_from_cost_matrix (line 24) | def test_p_median_from_cost_matrix(self): method test_p_median_from_cost_matrix_no_results (line 29) | def test_p_median_from_cost_matrix_no_results(self): method test_pmedian_facility_client_array_from_cost_matrix (line 41) | def test_pmedian_facility_client_array_from_cost_matrix( method test_pmedian_client_facility_array_from_cost_matrix (line 54) | def test_pmedian_client_facility_array_from_cost_matrix( method test_p_median_from_geodataframe (line 67) | def test_p_median_from_geodataframe(self): method test_pmedian_facility_client_array_from_geodataframe (line 79) | def test_pmedian_facility_client_array_from_geodataframe( method test_pmedian_client_facility_array_from_geodataframe (line 99) | def test_pmedian_client_facility_array_from_geodataframe( method test_pmedian_preselected_facility_client_array_from_geodataframe (line 119) | def test_pmedian_preselected_facility_client_array_from_geodataframe(s... class TestRealWorldLocate (line 151) | class TestRealWorldLocate: method setup_method (line 153) | def setup_method(self, load_locate_test_data) -> None: method test_optimality_pmedian_from_cost_matrix (line 195) | def test_optimality_pmedian_from_cost_matrix(self): method test_infeasibility_pmedian_from_cost_matrix (line 200) | def test_infeasibility_pmedian_from_cost_matrix(self, loc_raises_infea... method test_mixin_mean_distance (line 205) | def test_mixin_mean_distance(self): method test_optimality_pmedian_from_geodataframe (line 212) | def test_optimality_pmedian_from_geodataframe(self): method test_infeasibility_pmedian_from_geodataframe (line 224) | def test_infeasibility_pmedian_from_geodataframe(self, loc_raises_infe... class TestErrorsWarnings (line 237) | class TestErrorsWarnings: method setup_method (line 239) | def setup_method(self, toy_fac_data, toy_dem_data) -> None: method test_attribute_error_add_assignment_constraint (line 247) | def test_attribute_error_add_assignment_constraint(self): method test_attribute_error_add_opening_constraint (line 257) | def test_attribute_error_add_opening_constraint(self): method test_error_pmedian_different_crs (line 265) | def test_error_pmedian_different_crs( method test_warning_pmedian_demand_geodataframe (line 273) | def test_warning_pmedian_demand_geodataframe( FILE: spopt/tests/test_region/test_azp.py class TestAZP (line 14) | class TestAZP: method setup_method (line 15) | def setup_method(self): method test_azp_basic_from_w (line 30) | def test_azp_basic_from_w(self): FILE: spopt/tests/test_region/test_maxp.py class TestMaxPHeuristic (line 20) | class TestMaxPHeuristic: method setup_method (line 21) | def setup_method(self): method test_maxp_heuristic_basic_nonverbose (line 60) | def test_maxp_heuristic_basic_nonverbose(self): method test_maxp_heuristic_basic_verbose (line 72) | def test_maxp_heuristic_basic_verbose(self): method test_maxp_heuristic_complex (line 84) | def test_maxp_heuristic_complex(self): method test_maxp_one_var (line 96) | def test_maxp_one_var(self): method test_infeasible_components (line 108) | def test_infeasible_components(self): method test_plot_components (line 112) | def test_plot_components(self): method test_modify_components (line 117) | def test_modify_components(self): method test_modify_components_policy_error (line 133) | def test_modify_components_policy_error(self): method test_modify_components_xfeasible_error (line 145) | def test_modify_components_xfeasible_error(self): method test_form_single_component_already_single (line 155) | def test_form_single_component_already_single(self): method test_form_single_component_error (line 165) | def test_form_single_component_error(self): FILE: spopt/tests/test_region/test_random_regions.py class TestRandomRegionEmpirical (line 21) | class TestRandomRegionEmpirical: method setup_method (line 22) | def setup_method(self): method test_random_region_6_card (line 28) | def test_random_region_6_card(self): method test_random_region_6_card_contig_compact (line 46) | def test_random_region_6_card_contig_compact(self): class TestRandomRegionsEmpirical (line 70) | class TestRandomRegionsEmpirical: method setup_method (line 71) | def setup_method(self): method test_random_regions_6_card (line 76) | def test_random_regions_6_card(self): class TestRandomRegionSynthetic (line 96) | class TestRandomRegionSynthetic: method setup_method (line 97) | def setup_method(self): method test_random_region_unconstrained (line 103) | def test_random_region_unconstrained(self): method test_random_region_exo_regions (line 109) | def test_random_region_exo_regions(self): method test_random_region_endo_regions_constrained_card (line 116) | def test_random_region_endo_regions_constrained_card(self): method test_random_region_exo_regions_constrained_card (line 123) | def test_random_region_exo_regions_constrained_card(self): method test_random_region_endo_regions_constrained_contig (line 130) | def test_random_region_endo_regions_constrained_contig(self): method test_random_region_exo_regions_constrained_contig (line 137) | def test_random_region_exo_regions_constrained_contig(self): method test_random_region_exo_regions_constrained_card_contig (line 144) | def test_random_region_exo_regions_constrained_card_contig(self): method test_random_region_endo_regions_constrained_card_contig (line 155) | def test_random_region_endo_regions_constrained_card_contig(self): method test_random_regions_error_card (line 162) | def test_random_regions_error_card(self): method test_random_regions_error_contig (line 166) | def test_random_regions_error_contig(self): method test_random_regions_error_nregs (line 175) | def test_random_regions_error_nregs(self): class TestRandomRegionsSynthetic (line 180) | class TestRandomRegionsSynthetic: method setup_method (line 181) | def setup_method(self): method test_random_region_unconstrained (line 188) | def test_random_region_unconstrained(self): method test_random_region_exo_regions (line 195) | def test_random_region_exo_regions(self): method test_random_region_endo_regions_constrained_card (line 202) | def test_random_region_endo_regions_constrained_card(self): method test_random_region_exo_regions_constrained_card (line 209) | def test_random_region_exo_regions_constrained_card(self): method test_random_region_endo_regions_constrained_contig (line 220) | def test_random_region_endo_regions_constrained_contig(self): method test_random_region_exo_regions_constrained_contig (line 227) | def test_random_region_exo_regions_constrained_contig(self): method test_random_region_exo_regions_constrained_card_contig (line 238) | def test_random_region_exo_regions_constrained_card_contig(self): method test_random_region_endo_regions_constrained_card_contig (line 250) | def test_random_region_endo_regions_constrained_card_contig(self): FILE: spopt/tests/test_region/test_region_k_means.py class TestRegionKMeansHeuristic (line 12) | class TestRegionKMeansHeuristic: method setup_method (line 13) | def setup_method(self): method test_region_k_means_heuristic_synth_small (line 37) | def test_region_k_means_heuristic_synth_small(self): method test_region_k_means_heuristic_synth_large (line 46) | def test_region_k_means_heuristic_synth_large(self): FILE: spopt/tests/test_region/test_region_util.py class TestRegionUtil (line 16) | class TestRegionUtil: method setup_method (line 17) | def setup_method(self): method test_array_from_dict_values (line 20) | def test_array_from_dict_values(self): method test_scipy_sparse_matrix_from_dict (line 38) | def test_scipy_sparse_matrix_from_dict(self): method test_dict_from_graph_attr (line 69) | def test_dict_from_graph_attr(self): method test_check_solver (line 89) | def test_check_solver(self): method test_get_solver_instance (line 94) | def test_get_solver_instance(self): FILE: spopt/tests/test_region/test_sa3.py class TestSA3 (line 15) | class TestSA3: method setup_method (line 16) | def setup_method(self): method test_ward_eom_3 (line 186) | def test_ward_eom_3(self): method test_ward_leaf_10 (line 194) | def test_ward_leaf_10(self): method test_extract_clusters (line 217) | def test_extract_clusters(self): method test_invalid_extraction (line 240) | def test_invalid_extraction(self): FILE: spopt/tests/test_region/test_skater.py class TestSkater (line 20) | class TestSkater: method setup_method (line 21) | def setup_method(self): method test_skater_defaults (line 47) | def test_skater_defaults(self): method test_skater_defaults_verbose (line 56) | def test_skater_defaults_verbose(self): method test_skater_defaults_super_verbose (line 71) | def test_skater_defaults_super_verbose(self): method test_skater_defaults_non_defaults (line 87) | def test_skater_defaults_non_defaults(self): method test_skater_island_pass (line 113) | def test_skater_island_pass(self): method test_skater_island_fail (line 139) | def test_skater_island_fail(self): method test_skater_forest_affinity (line 161) | def test_skater_forest_affinity(self): FILE: spopt/tests/test_region/test_spenc.py class TestSpenc (line 14) | class TestSpenc: method setup_method (line 15) | def setup_method(self): method test_spenc_non_defaults (line 23) | def test_spenc_non_defaults(self): FILE: spopt/tests/test_region/test_ward.py class TestWard (line 13) | class TestWard: method setup_method (line 14) | def setup_method(self): method test_ward_defaults (line 22) | def test_ward_defaults(self):