MTCT
Design Automation and Optimization for ETCS Railway Networks
Loading...
Searching...
No Matches
GreedyHeuristic.hpp File Reference
#include "CustomExceptions.hpp"
#include "GeneralSimulator.hpp"
#include "probleminstances/GeneralPerformanceOptimizationInstance.hpp"
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  cda_rail::simulator::RemainingTimeHeuristicResult
 What a remaining-time heuristic estimates for one train. More...
struct  cda_rail::simulator::HeuristicResult
 A lower bound on how much the objective still increases. More...

Namespaces

namespace  cda_rail
namespace  cda_rail::simulator

Enumerations

enum class  cda_rail::simulator::RemainingTimeHeuristicType : std::uint8_t { cda_rail::simulator::Zero = 0 , cda_rail::simulator::Simple = 1 }
 Which lower bound on the remaining time the A* search uses. More...

Functions

constexpr std::string cda_rail::simulator::remaining_time_heuristic_type_to_string (RemainingTimeHeuristicType const type)
 The name of type, as it is reported and parsed.
double cda_rail::simulator::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 cda_rail::simulator::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 cda_rail::simulator::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 cda_rail::simulator::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 cda_rail::simulator::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.