Open-source code for paper: "Direct Multiple Shooting for Computationally Efficient Train Trajectory Optimization"
-
Tested with Python 3.9.13 on Windows 10 (10.0.19044)
-
Open terminal in root folder of repository and type
python -m venv .envto create a virtual environment.envis an example for the folder name, you may choose any other name
-
Activate the virtual environment:
.\.env\Scripts\activate -
Install dependencies with:
pip install -r requirements.txt -
deactivate virtual environment by typing:
deactivate
- Same as on Windows but use
source .env/bin/activateto activate virtual environment
-
Open a terminal and activate the virtual environment (see instructions above)
-
Go to the
simulationsfolder and run a script of your choice- Example:
python figure5.pyto generate Figure 5 of paper (figure5.pdf)
- Example:
-
Latex fonds on the plots will be used only if a valid latex installation is found