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

Namespaces

namespace  functions

Classes

class  SeparationFunction
 A separation function together with the name it is known by. More...
class  Model
 How a VSS generation solver models the VSS borders. More...

Typedefs

using SeparationFunctionCallable = double (*)(size_t, size_t)
 Relative position of the i-th border if an edge is separated into n blocks.

Enumerations

enum class  ModelType : std::uint8_t { Discrete = 0 , Continuous = 1 , Inferred = 2 , InferredAlt = 3 }
 How the VSS borders are modelled in the MILP. More...

Functions

constexpr std::string model_type_to_string (ModelType model_type)
 The name of model_type, as it is reported and parsed.

Variables

constexpr SeparationFunction UNIFORM {"Uniform", &functions::uniform}
 The separation functions that are known by name.
constexpr SeparationFunction CHEBYSHEV

Typedef Documentation

◆ SeparationFunctionCallable

using cda_rail::vss::SeparationFunctionCallable = double (*)(size_t, size_t)

Relative position of the i-th border if an edge is separated into n blocks.

Enumeration Type Documentation

◆ ModelType

enum class cda_rail::vss::ModelType : std::uint8_t
strong

How the VSS borders are modelled in the MILP.

  • Discrete: the network is discretized beforehand and one binary variable per candidate vertex decides whether a border is placed there.
  • Continuous: the position of every border is a continuous variable.
  • Inferred: only the number of blocks per edge is decided, their positions follow from one of the given separation functions.
  • InferredAlt: the same, in an alternative formulation using one binary variable per separation function and number of blocks.

Which of them are consistent with how many separation functions is checked by Model::check_consistency.

Enumerator
Discrete 
Continuous 
Inferred 
InferredAlt 

Function Documentation

◆ model_type_to_string()

std::string cda_rail::vss::model_type_to_string ( ModelType model_type)
nodiscardconstexpr

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

Variable Documentation

◆ CHEBYSHEV

SeparationFunction cda_rail::vss::CHEBYSHEV
inlineconstexpr
Initial value:
{"Chebyshev",
double chebyshev(size_t i, size_t n)
Computes a Chebyshev separation value for node positioning.
Definition VSSModel.hpp:139

◆ UNIFORM

SeparationFunction cda_rail::vss::UNIFORM {"Uniform", &functions::uniform}
inlineconstexpr

The separation functions that are known by name.

Every separation function used by a solver should be one of these, since only a named function can be reported back, e.g. in the exported solver data.