MTCT
Design Automation and Optimization for ETCS Railway Networks
Loading...
Searching...
No Matches
VSSModel.hpp File Reference
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <numbers>
#include <stdexcept>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

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

Namespaces

namespace  cda_rail
namespace  cda_rail::vss
namespace  cda_rail::vss::functions

Typedefs

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.

Enumerations

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

Functions

constexpr std::string cda_rail::vss::model_type_to_string (ModelType model_type)
 The name of model_type, as it is reported and parsed.
double cda_rail::vss::functions::uniform (size_t i, size_t n)
 Computes uniformly spaced normalized positions.
double cda_rail::vss::functions::chebyshev (size_t i, size_t n)
 Computes a Chebyshev separation value for node positioning.
size_t cda_rail::vss::functions::max_n_blocks (const SeparationFunction &sep_func, double min_frac)
 Finds the maximum number of blocks with a given minimum separation constraint.

Variables

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