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

Namespaces

namespace  astar_based
namespace  mip_based

Classes

struct  GeneralSolutionSettings
 Where a solver writes its solution to, see GeneralSolver::export_general_solution. More...
class  GeneralSolver
 Base of every solver, connecting an instance type to its solution type. More...

Enumerations

enum class  GeneralExportOption : std::uint8_t { NoExport = 0 , ExportSolution = 1 , ExportSolutionWithInstance = 2 }
 What a solver writes to disk once it is done. More...

Functions

void write_solver_data (std::filesystem::path const &export_directory, nlohmann::json const &solver_data)
 Writes solver data, see GeneralSolver::get_solver_data, to solver_data.json in export_directory.

Enumeration Type Documentation

◆ GeneralExportOption

enum class cda_rail::solver::GeneralExportOption : std::uint8_t
strong

What a solver writes to disk once it is done.

Exporting the instance alongside the solution makes the export self-contained, which is what one wants if the instance was modified by the solver, e.g. by discretizing it.

Enumerator
NoExport 
ExportSolution 
ExportSolutionWithInstance 

Function Documentation

◆ write_solver_data()

void cda_rail::solver::write_solver_data ( std::filesystem::path const & export_directory,
nlohmann::json const & solver_data )
inline

Writes solver data, see GeneralSolver::get_solver_data, to solver_data.json in export_directory.

Exceptions
exceptions::ExportExceptionIf the directory could not be created or the file could not be written