|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
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 |
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.
| double cda_rail::solver::mip_based::SolverStrategyMovingBlock::abs_mip_gap = 10 |
| double cda_rail::solver::mip_based::SolverStrategyMovingBlock::completion_dt = DEFAULT_COMPLETION_DT |
| size_t cda_rail::solver::mip_based::SolverStrategyMovingBlock::completion_interval = 0 |
| bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::include_reverse_headways = false |
| LazyConstraintSelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_constraint_selection_strategy |
| LazyTrainSelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_train_selection_strategy |
| LazyVelocitySelectionStrategy cda_rail::solver::mip_based::SolverStrategyMovingBlock::lazy_velocity_selection_strategy |
| bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::use_indicator_constraints = false |
| bool cda_rail::solver::mip_based::SolverStrategyMovingBlock::use_lazy_constraints |