MTCT
Design Automation and Optimization for ETCS Railway Networks
Loading...
Searching...
No Matches
cda_rail::solver::mip_based Namespace Reference

Classes

struct  SolutionSettingsMIP
 Export settings shared by all MIP based solvers. More...
struct  SolutionSettingsVSSGen
 Export settings of the VSS generation MIP solver. More...
class  MessageCallback
 Routes the output of Gurobi into the logging of this tool. More...
class  GeneralMIPSolver
 Base of every solver that builds a MIP and hands it to Gurobi. More...
struct  ModelDetailMovingBlock
 How accurately the moving block MIP models the operation. More...
struct  SolverStrategyMovingBlock
 How the moving block MIP is handed to and solved by Gurobi. More...
class  GenPOMovingBlockMIPSolver
 Routes the trains of a moving block instance by a MILP. More...
struct  SolverStrategyVSSGen
 How the VSS generation model is solved. More...
struct  ModelDetailVSSGen
 How accurately the VSS generation model describes the operation. More...
struct  ModelDetailMBInformation
 The same, plus how much of a moving block solution is used. More...
struct  ModelSettingsVSSGen
 How the VSS borders and the braking distances are modelled. More...
class  VSSGenTimetableSolver
 Adds as few VSS as possible so that the timetable can be operated. More...
class  VSSGenTimetableSolverWithMovingBlockInformation
 The same solver, guided by a moving block solution of the instance. More...

Typedefs

using SolutionSettingsMovingBlock = SolutionSettingsMIP
 Export settings of the moving block MIP solver.

Enumerations

enum class  LazyConstraintSelectionStrategy : std::uint8_t { OnlyFirstFound = 0 , OnlyViolated = 1 , AllChecked = 2 }
 Which of the headway constraints the lazy callback adds. More...
enum class  LazyTrainSelectionStrategy : std::uint8_t { OnlyAdjacent = 0 , All = 1 }
 Which train pairs the lazy callback checks against each other. More...
enum class  LazyVelocitySelectionStrategy : std::uint8_t { OnlyCurrent = 0 , ExtendToHigher = 1 , All = 2 }
 For which velocities the lazy callback adds a headway constraint between two trains on an edge. More...
enum class  UpdateStrategyVSSGen : std::uint8_t { Fixed = 0 , Relative = 1 }
 How the iterative approach increases the number of VSS per edge. More...

Functions

constexpr std::string velocity_refinement_strategy_to_string (VelocityRefinementStrategy strategy)
 The name of strategy, as it is reported and parsed.
constexpr std::string lazy_constraint_selection_strategy_to_string (LazyConstraintSelectionStrategy strategy)
 The name of strategy, as it is reported and parsed.
constexpr std::string lazy_train_selection_strategy_to_string (LazyTrainSelectionStrategy strategy)
 The name of strategy, as it is reported and parsed.
constexpr std::string lazy_velocity_selection_strategy_to_string (LazyVelocitySelectionStrategy strategy)
 The name of strategy, as it is reported and parsed.
constexpr std::string update_strategy_to_string (UpdateStrategyVSSGen strategy)
 The name of strategy, as it is reported and parsed.
constexpr std::string optimality_strategy_to_string (OptimalityStrategy strategy)
 The name of strategy, as it is reported and parsed.

Variables

constexpr double DEFAULT_MAX_DELAY = 24 * 60 * 60
constexpr double DEFAULT_COMPLETION_DT = 6.0
constexpr double MIN_INT_FEAS_TOL = 1e-9
constexpr double DEFAULT_INT_FEAS_TOL = 1e-5

Typedef Documentation

◆ SolutionSettingsMovingBlock

Export settings of the moving block MIP solver.

The moving block MIP solver does not have any export settings beyond the ones shared by all MIP based solvers.

Enumeration Type Documentation

◆ LazyConstraintSelectionStrategy

Which of the headway constraints the lazy callback adds.

The strategies are ordered by how many constraints they add: OnlyFirstFound adds only the first constraint that the incumbent violates, OnlyViolated adds every constraint that the incumbent violates, and AllChecked adds every constraint it looked at, whether it was violated or not. With every strategy, a constraint that was already added is only added again if the incumbent violates it.

Enumerator
OnlyFirstFound 
OnlyViolated 
AllChecked 

◆ LazyTrainSelectionStrategy

Which train pairs the lazy callback checks against each other.

OnlyAdjacent only checks a train against its direct neighbors in the order of the edge or TTD section, while All checks it against every other train ordered there.

Enumerator
OnlyAdjacent 
All 

◆ LazyVelocitySelectionStrategy

For which velocities the lazy callback adds a headway constraint between two trains on an edge.

Once the callback decides, see LazyConstraintSelectionStrategy, that a train passing a vertex has to be separated from a train ahead, the constraint depends on the velocity at which the train passes the vertex, since its moving authority ends the further ahead the faster it is. OnlyCurrent adds the constraint of the velocity in the incumbent. ExtendToHigher adds no further constraint, but extends this one to every higher velocity, i.e., it also binds if the train passes the vertex faster. This is valid, since a higher velocity only extends the moving authority, but weaker than the constraint of the higher velocity itself. All adds the constraint of every velocity at the vertex, each of which only holds for its own velocity.

Only the full headway constraints on edges are affected. The simplified ones, see ModelDetailMovingBlock::simplify_headway_constraints, already express the headway of every velocity in a single constraint, and the headway constraints of TTD sections always use the velocities of the incumbent.

Enumerator
OnlyCurrent 
ExtendToHigher 
All 

◆ UpdateStrategyVSSGen

enum class cda_rail::solver::mip_based::UpdateStrategyVSSGen : std::uint8_t
strong

How the iterative approach increases the number of VSS per edge.

Fixed works with absolute numbers of VSS, whereas Relative works with fractions of the number that is theoretically possible on an edge.

Enumerator
Fixed 
Relative 

Function Documentation

◆ lazy_constraint_selection_strategy_to_string()

std::string cda_rail::solver::mip_based::lazy_constraint_selection_strategy_to_string ( LazyConstraintSelectionStrategy strategy)
constexpr

The name of strategy, as it is reported and parsed.

◆ lazy_train_selection_strategy_to_string()

std::string cda_rail::solver::mip_based::lazy_train_selection_strategy_to_string ( LazyTrainSelectionStrategy strategy)
constexpr

The name of strategy, as it is reported and parsed.

◆ lazy_velocity_selection_strategy_to_string()

std::string cda_rail::solver::mip_based::lazy_velocity_selection_strategy_to_string ( LazyVelocitySelectionStrategy strategy)
constexpr

The name of strategy, as it is reported and parsed.

◆ optimality_strategy_to_string()

std::string cda_rail::solver::mip_based::optimality_strategy_to_string ( OptimalityStrategy strategy)
constexpr

The name of strategy, as it is reported and parsed.

◆ update_strategy_to_string()

std::string cda_rail::solver::mip_based::update_strategy_to_string ( UpdateStrategyVSSGen strategy)
constexpr

The name of strategy, as it is reported and parsed.

◆ velocity_refinement_strategy_to_string()

std::string cda_rail::solver::mip_based::velocity_refinement_strategy_to_string ( VelocityRefinementStrategy strategy)
constexpr

The name of strategy, as it is reported and parsed.

Variable Documentation

◆ DEFAULT_COMPLETION_DT

double cda_rail::solver::mip_based::DEFAULT_COMPLETION_DT = 6.0
constexpr

◆ DEFAULT_INT_FEAS_TOL

double cda_rail::solver::mip_based::DEFAULT_INT_FEAS_TOL = 1e-5
constexpr

◆ DEFAULT_MAX_DELAY

double cda_rail::solver::mip_based::DEFAULT_MAX_DELAY = 24 * 60 * 60
constexpr

◆ MIN_INT_FEAS_TOL

double cda_rail::solver::mip_based::MIN_INT_FEAS_TOL = 1e-9
constexpr