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

How the moving block MIP is handed to and solved by Gurobi. More...

#include <GenPOMovingBlockMIPSolver.hpp>

Public Attributes

bool use_indicator_constraints = false
bool use_lazy_constraints
bool include_reverse_headways = false
LazyVelocitySelectionStrategy lazy_velocity_selection_strategy
LazyConstraintSelectionStrategy lazy_constraint_selection_strategy
LazyTrainSelectionStrategy lazy_train_selection_strategy
double abs_mip_gap = 10
size_t completion_interval = 0
double completion_dt = DEFAULT_COMPLETION_DT

Detailed Description

How the moving block MIP is handed to and solved by Gurobi.

The headway constraints are the ones there are too many of to add upfront, which is why they are separated lazily by default. The remaining lazy settings are ignored if they are not.

If completion_interval is some x > 0, the initial A* state, see astar_based::complete_state, and the LP relaxation of every x-th node Gurobi reports are completed heuristically and simulated. With fixed routes, see ModelDetailMovingBlock::fix_routes, only the initial state is completed, since the relaxations cannot change the routes. The solver keeps the best simulated solution itself, since Gurobi often cannot complete it with the discrete velocities of the model, and only allows Gurobi solutions that are at least as good. It returns this solution unless Gurobi finds a better one. Every simulated solution is also offered to Gurobi, fixing every integer variable as in the simulation, i.e., its routes, stops and orders, and the velocities closest to the simulated ones. Gurobi computes the times. The completions are simulated by the greedy simulator with time step completion_dt in seconds.

Member Data Documentation

◆ abs_mip_gap

double cda_rail::solver::mip_based::SolverStrategyMovingBlock::abs_mip_gap = 10

◆ completion_dt

double cda_rail::solver::mip_based::SolverStrategyMovingBlock::completion_dt = DEFAULT_COMPLETION_DT

◆ completion_interval

size_t cda_rail::solver::mip_based::SolverStrategyMovingBlock::completion_interval = 0

◆ include_reverse_headways

bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::include_reverse_headways = false

◆ lazy_constraint_selection_strategy

LazyConstraintSelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_constraint_selection_strategy

◆ lazy_train_selection_strategy

LazyTrainSelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_train_selection_strategy
Initial value:

◆ lazy_velocity_selection_strategy

LazyVelocitySelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_velocity_selection_strategy
Initial value:

◆ use_indicator_constraints

bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::use_indicator_constraints = false

◆ use_lazy_constraints

bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::use_lazy_constraints
Initial value:
=
true

The documentation for this struct was generated from the following file: