File size: 1,465 Bytes
cc298f9
 
 
 
 
 
 
 
b6cd270
cc298f9
 
b6cd270
b443816
 
 
 
 
 
 
cc298f9
 
 
 
31946d6
 
cc298f9
 
 
 
 
 
 
 
 
 
31946d6
 
cc298f9
 
 
 
b443816
 
 
 
cc298f9
 
 
 
b6cd270
cc298f9
b6cd270
cc298f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""Placement optimization module.

Public API:
- Objective: SeparableObjective + factories (mean_response_time, weighted_coverage,
  expected_failure)
- PlacementSet + builders (from_stations, attach_travel_times)
- sample_shore_candidates
- Problem
- Solution + algorithms (greedy, local_swap, local_k_swap, greedy_then_swap, greedy_then_k_swap)
"""

from .algorithms import Solution, greedy, greedy_then_k_swap, greedy_then_swap, local_k_swap, local_swap
from .candidates import (
    sample_kronshtadt_candidates,
    sample_kronshtadt_points,
    sample_mainland_candidates,
    sample_mainland_points,
    sample_shore_candidates,
)
from .objective import (
    SeparableObjective,
    expected_failure,
    mean_response_time,
    survival_exponential,
    survival_increasing_intensity,
    weighted_coverage,
)
from .placement import PlacementSet, attach_travel_times, from_stations
from .problem import Problem

__all__ = [
    "SeparableObjective",
    "mean_response_time",
    "weighted_coverage",
    "expected_failure",
    "survival_exponential",
    "survival_increasing_intensity",
    "PlacementSet",
    "from_stations",
    "attach_travel_times",
    "sample_shore_candidates",
    "sample_mainland_candidates",
    "sample_mainland_points",
    "sample_kronshtadt_candidates",
    "sample_kronshtadt_points",
    "Problem",
    "Solution",
    "greedy",
    "local_swap",
    "local_k_swap",
    "greedy_then_swap",
    "greedy_then_k_swap",
]