|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Classes | |
| class | EventSimulator |
| Simulates the trains of a moving block instance event by event. More... | |
| struct | PosVel |
| Position of a train's front along its route in m together with its velocity in m/s. More... | |
| struct | SimulatorResults |
| What a simulation run produced. More... | |
| struct | SimulatorState |
| Everything a simulation run needs beyond the instance itself. More... | |
| class | GeneralSimulator |
| struct | RemainingTimeHeuristicResult |
| What a remaining-time heuristic estimates for one train. More... | |
| struct | HeuristicResult |
| A lower bound on how much the objective still increases. More... | |
| class | GreedySimulator |
| Simulates the trains of a moving block instance greedily. More... | |
Enumerations | |
| enum class | SimulatorType : std::uint8_t { Greedy = 0 , EventBased = 1 } |
| Which simulator obtains the trajectories of a state. More... | |
| enum class | RemainingTimeHeuristicType : std::uint8_t { Zero = 0 , Simple = 1 } |
| Which lower bound on the remaining time the A* search uses. More... | |
Functions | |
| constexpr std::string | simulator_type_to_string (SimulatorType const type) |
The name of type, as it is reported and parsed. | |
| constexpr std::string | remaining_time_heuristic_type_to_string (RemainingTimeHeuristicType const type) |
The name of type, as it is reported and parsed. | |
| double | objective_val (const instances::GeneralPerformanceOptimizationInstance &instance, const std::vector< double > &tr_exit_times, const std::vector< std::vector< double > > &stop_times) |
| Computes the objective value based on train exit times and stop times. | |
| RemainingTimeHeuristicResult | simple_remaining_time_heuristic (size_t tr, const instances::GeneralPerformanceOptimizationInstance &instance, const SimulatorState &state, double tr_exit_time, bool consider_earliest_exit) |
| Computes the simple remaining-time heuristic for one train. | |
| RemainingTimeHeuristicResult | remaining_time_heuristic (RemainingTimeHeuristicType type, size_t tr, const instances::GeneralPerformanceOptimizationInstance &instance, const SimulatorState &state, double tr_exit_time, bool consider_earliest_exit) |
| Computes a remaining-time heuristic estimate using the selected strategy. | |
| HeuristicResult | greedy_heuristic (RemainingTimeHeuristicType remaining_time_heuristic_type, size_t tr, const instances::GeneralPerformanceOptimizationInstance &instance, const SimulatorState &state, double tr_exit_time, bool consider_earliest_exit) |
| Combines braking-time and remaining-time heuristics into a single objective-value difference for a train. | |
| HeuristicResult | full_greedy_heuristic (RemainingTimeHeuristicType remaining_time_heuristic_type, const instances::GeneralPerformanceOptimizationInstance &instance, const SimulatorState &state, const SimulatorResults &sim_results, bool consider_earliest_exit) |
| Computes a weighted-sum objective-value difference for all trains. | |
Variables | |
| constexpr int | CYCLE_LIMIT = 1000 |
| After how many time steps without any movement, in which no train has a reason to wait, a simulation is given up as deadlocked. | |
|
strong |
|
strong |
Which simulator obtains the trajectories of a state.
Greedy advances all trains in time steps of a fixed length, see GreedySimulator, whereas EventBased only simulates a train again once something relevant to it happens, see EventSimulator.
| Enumerator | |
|---|---|
| Greedy | |
| EventBased | |
|
nodiscard |
Computes a weighted-sum objective-value difference for all trains.
| remaining_time_heuristic_type | Remaining-time heuristic type. |
| instance | The problem instance. |
| state | The state that was simulated. |
| sim_results | Simulation results with exit times and braking parameters. |
| consider_earliest_exit | Whether to enforce earliest departure and exit times. |
| cda_rail::exceptions::ConsistencyException | If result sizes do not match train count. |
| cda_rail::exceptions::InvalidInputException | If the simulation failed. |
|
nodiscard |
Combines braking-time and remaining-time heuristics into a single objective-value difference for a train.
Computes the objective-value difference as remaining-exit-time plus the station-delay weight multiplied by average-remaining-stop-delay.
| remaining_time_heuristic_type | Type of remaining-time heuristic variant to use. |
| tr | Train index. |
| instance | The problem instance. |
| state | The routes and stop positions decided so far. |
| tr_exit_time | Current simulated exit time of the train. |
| consider_earliest_exit | Whether to enforce earliest departure and exit constraints. |
|
inlinenodiscard |
Computes the objective value based on train exit times and stop times.
| instance | The problem instance. |
| tr_exit_times | Exit times per train. |
| stop_times | Stop times per train and stop. |
|
inlinenodiscard |
Computes a remaining-time heuristic estimate using the selected strategy.
Dispatches to the appropriate remaining-time heuristic implementation based on the specified type. The Zero strategy returns a trivial feasible result with zero remaining time and delay. The Simple strategy delegates to the simple remaining-time heuristic.
| type | The remaining-time heuristic strategy to apply. |
| tr | Train index. |
| instance | The problem instance. |
| state | The routes and stop positions decided so far. |
| tr_exit_time | The train's exit time. |
| consider_earliest_exit | Whether to consider the train's earliest exit time. |
|
constexpr |
The name of type, as it is reported and parsed.
|
nodiscard |
Computes the simple remaining-time heuristic for one train.
| tr | Train index. |
| instance | The problem instance. |
| state | The routes and stop positions decided so far. |
| tr_exit_time | Current simulated exit time. |
| consider_earliest_exit | Whether earliest-exit constraints are enforced. |
|
constexpr |
The name of type, as it is reported and parsed.
|
inlineconstexpr |
After how many time steps without any movement, in which no train has a reason to wait, a simulation is given up as deadlocked.