Skip to content

dkouzoup/ms-eetc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ms-eetc

Open-source code for paper: "Direct Multiple Shooting for Computationally Efficient Train Trajectory Optimization"

Installation

Setting up a virtual environment

Windows

Tested with Python 3.9.13 on Windows 10 (10.0.19044)

  1. Open a terminal in the root folder of the repository and create a virtual environment:

    python -m venv .env
    

    .env is an example name; any other name may be used.

  2. Activate the virtual environment:

    .\.env\Scripts\activate
    
  3. Install the package:

    pip install -e .
    
  4. Deactivate the virtual environment when finished:

    deactivate
    

Linux

Same as on Windows, but activate the virtual environment with:

source .env/bin/activate

Simulations

  1. Open a terminal and activate the virtual environment (see instructions above).

  2. Navigate to the simulations folder and run a script of your choice. For example:

    python figure5.py
    

    This generates Figure 5 of the paper (figure5.pdf).

  3. LaTeX fonts on the plots will be used only if a valid LaTeX installation is found.

About

Multiple shooting for computationally efficient train trajectory optimization

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors