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 a terminal in the root folder of the repository and create a virtual environment:
python -m venv .env.envis an example name; any other name may be used. -
Activate the virtual environment:
.\.env\Scripts\activate -
Install the package:
pip install -e . -
Deactivate the virtual environment when finished:
deactivate
Same as on Windows, but activate the virtual environment with:
source .env/bin/activate
-
Open a terminal and activate the virtual environment (see instructions above).
-
Navigate to the
simulationsfolder and run a script of your choice. For example:python figure5.pyThis generates Figure 5 of the paper (
figure5.pdf). -
LaTeX fonts on the plots will be used only if a valid LaTeX installation is found.