ALTRIOS
Fully integrated, open-source software tool to evaluate strategies for deploying advanced locomotive technologies and associated infrastructure for cost-effective decarbonization.
https://github.com/nrel/altrios
Category: Consumption
Sub Category: Mobility and Transportation
Keywords from Contributors
transforms archiving measur generic optimize projection compose animals conversion observation
Last synced: about 11 hours ago
JSON representation
Repository metadata
- Host: GitHub
- URL: https://github.com/nrel/altrios
- Owner: NREL
- License: other
- Created: 2023-05-24T19:54:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-24T21:26:51.000Z (3 days ago)
- Last Synced: 2025-04-25T13:03:55.147Z (2 days ago)
- Language: Rust
- Homepage: https://nrel.github.io/altrios/
- Size: 12.3 MB
- Stars: 21
- Watchers: 5
- Forks: 10
- Open Issues: 13
- Releases: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
README.md
ALTRIOS
The Advanced Locomotive Technology and Rail Infrastructure Optimization System (ALTRIOS) is a unique, fully integrated, open-source software tool to evaluate strategies for deploying advanced locomotive technologies and associated infrastructure for cost-effective decarbonization. ALTRIOS simulates freight-demand driven train scheduling, mainline meet-pass planning, locomotive dynamics, train dynamics, energy conversion efficiencies, and energy storage dynamics of line-haul train operations. Because new locomotives represent a significant long-term capital investment and new technologies must be thoroughly demonstrated before deployment, this tool provides guidance on the risk/reward tradeoffs of different technology rollout strategies. An open, integrated simulation tool is invaluable for identifying future research needs and making decisions on technology development, routes, and train selection. ALTRIOS was developed as part of a collaborative effort by a team comprising The National Renewable Energy Laboratory (NREL), University of Texas (UT), Southwest Research Institute (SwRI), and BNSF Railway.
Much of the core code in ALTRIOS is written in the Rust Programming Language to ensure excellent computational performance and robustness, but we've built ALTRIOS with the intent of users interacting with the code through our feature-rich Python interface.
Installation
If you are an ALTRIOS developer, see Developer Documentation. Otherwise, read on.
Python Setup
- Python installation options:
- Option 1 -- Python: https://www.python.org/downloads/. We recommend Python 3.10. Be sure to check the
Add to PATH
option during installation. - Option 2 -- Anaconda: we recommend https://docs.conda.io/en/latest/miniconda.html.
- Option 1 -- Python: https://www.python.org/downloads/. We recommend Python 3.10. Be sure to check the
- Setup a python environment. ALTRIOS can work with Python 3.9, or 3.10, but we recommend 3.10 for better performance and user experience. Create a python environment for ALTRIOS with either of two methods:
- Option 1 -- Python Venv
-
Navigate to the ALTRIOS folder you just cloned or any folder you'd like for using ALTRIOS. Remember the folder you use!
-
Assuming you have Python 3.10 installed, run
(path to your python3.10 e.g. ~/AppData/Local/Programs/Python/Python310/python.exe) -m venv altrios-venv
in Windowspython3.10 -m venv altrios-venv
in Mac/Unix/Linux
in your terminal enviroment (we recommend PowerShell in Windows, which comes pre-installed).
This tells Python 3.10 to use the
venv
module to create a virtual environment (which will be ignored by git if namedaltrios-venv
) in theALTRIOS/altrios-venv/
. -
Activate the environment you just created to install packages or anytime you're running ALTRIOS:
- Mac and Linux:
source altrios-venv/bin/activate
- Windows:
altrios-venv/Scripts/activate.bat
in a windows command prompt or power shell orsource altrios-venv/Scripts/activate
in git bash terminal - When the environment is activated, your terminal session will have a decorator that looks like
(altrios-venv)
.
- Mac and Linux:
-
- Option 2 -- Anaconda:
- Open an Anaconda prompt (in Windows, we recommend Anaconda Powershell Prompt) and run the command
conda create -n altrios python=3.10
to create an Anaconda environment namedaltrios
. - Activate the environment to install packages or anytime you're running ALTRIOS: run
conda activate altrios
.
- Open an Anaconda prompt (in Windows, we recommend Anaconda Powershell Prompt) and run the command
- Option 1 -- Python Venv
ALTRIOS Setup
With your Python environment activated, run pip install altrios
.
Congratulations, you've completed installation! Whenever you need to use ALTRIOS, be sure to activate your python environment created above.
How to run ALTRIOS
With your activated Python environment with ALTRIOS fully installed, you can download the demo scripts to the current working directory inside of a demos/
folder with:
import altrios as alt
alt.copy_demo_files()
You can run the Simulation Manager through a multi-week simulation of train operations in by running python sim_manager_demo.py
in demos/
. This will create a plots/
subfolder in which the plots will be saved. To run interactively, fire up a Python IDE (e.g. VS Code, Spyder), and run the file. If you're in VS Code, you can run the file as a virtual jupyter notebook because of the "cells" that are marked with the # %%
annotation. You can click on line 2, for example, and hit <Shift> + <Enter>
to run the current cell in an interactive terminal (which will take several seconds to launch) and advance to the next cell. Alternatively, you can hit <Ctrl> + <Shift> + p
to enable interactive commands and type "run current cell". There are several other python files in the demos/
folder to demonstrate various capabilities of ALTRIOS.
If you plan to modify the data used in the demo files, copy the data files to your local directory and load them from there, e.g.
res = alt.ReversibleEnergyStorage.from_file(
alt.resources_root() / "powertrains/reversible_energy_storages/Kokam_NMC_75Ah_flx_drive.yaml"
)
would become
res = alt.ReversibleEnergyStorage.from_file(
"./custom_battery.yaml"
)
Nearly every code object in ALTRIOS can be read from or written to common data formats. For more details, see the SerdeAPI trait documentation. All of the functions in the SerdeAPI are available through the python interface.
Acknowledgements
The ALTRIOS Team would like to thank ARPA-E for financially supporting the research through the LOCOMOTIVES program and Dr. Robert Ledoux for his vision and support. We would also like to thank the ARPA-E team for their support and guidance: Dr. Apoorv Agarwal, Mirjana Marden, Alexis Amos, and Catherine Good. We would also like to thank BNSF for their cost share financial support, guidance, and deep understanding of the rail industry’s needs. Additionally, we would like to thank Jinghu Hu for his contributions to the core ALTRIOS code. We would like to thank Chris Hennessy at SwRI for his support. Thank you to Michael Cleveland for his help with developing and kicking off this project.
Owner metadata
- Name: National Renewable Energy Laboratory
- Login: NREL
- Email:
- Kind: organization
- Description:
- Website: http://www.nrel.gov
- Location: Golden, CO
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1906800?v=4
- Repositories: 599
- Last ynced at: 2024-12-18T09:41:07.898Z
- Profile URL: https://github.com/NREL
GitHub Events
Total
- Create event: 31
- Release event: 3
- Issues event: 11
- Watch event: 3
- Delete event: 10
- Member event: 2
- Issue comment event: 23
- Push event: 201
- Pull request review comment event: 22
- Pull request event: 36
- Pull request review event: 27
- Fork event: 5
Last Year
- Create event: 31
- Release event: 3
- Issues event: 11
- Watch event: 3
- Delete event: 10
- Member event: 2
- Issue comment event: 23
- Push event: 201
- Pull request review comment event: 22
- Pull request event: 36
- Pull request review event: 27
- Fork event: 5
Committers metadata
Last synced: 5 days ago
Total Commits: 762
Total Committers: 13
Avg Commits per committer: 58.615
Development Distribution Score (DDS): 0.227
Commits in past year: 422
Committers in past year: 8
Avg Commits per committer in past year: 52.75
Development Distribution Score (DDS) in past year: 0.261
Name | Commits | |
---|---|---|
Chad Baker | c****r@n****v | 589 |
Bruchon, Matthew | M****n@n****v | 86 |
sakhtar | s****r@n****v | 33 |
StevenGotGame | d****1@i****u | 13 |
Nicholas Reinicke | n****e | 12 |
FDsteven | f****w@g****m | 8 |
dependabot[bot] | 4****] | 8 |
Kyle Carow | 4****w | 3 |
D03\ganderson | g****n@s****g | 3 |
Kyle Carow | K****w@n****v | 3 |
sakhtar312 | 1****2 | 2 |
hpanneer | h****m@n****v | 1 |
Matthew Bruchon | m****o@g****m | 1 |
Committer domains:
- nrel.gov: 5
- swri.org: 1
- illinois.edu: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 11
Total pull requests: 143
Average time to close issues: 6 months
Average time to close pull requests: 11 days
Total issue authors: 5
Total pull request authors: 9
Average comments per issue: 2.18
Average comments per pull request: 0.34
Merged pull request: 125
Bot issues: 0
Bot pull requests: 4
Past year issues: 9
Past year pull requests: 51
Past year average time to close issues: 4 months
Past year average time to close pull requests: 23 days
Past year issue authors: 4
Past year pull request authors: 7
Past year average comments per issue: 1.78
Past year average comments per pull request: 0.41
Past year merged pull request: 40
Past year bot issues: 0
Past year bot pull requests: 4
Top Issue Authors
- mbbruch (3)
- calbaker (3)
- spencerm89 (2)
- SWRIganderson (2)
- dan-mccabe (1)
Top Pull Request Authors
- calbaker (104)
- sakhtar312 (15)
- mbbruch (7)
- dependabot[bot] (4)
- kylecarow (4)
- FDsteven (3)
- nreinicke (3)
- panne027 (2)
- robinsteuteville (1)
Top Issue Labels
- future (3)
- enhancement (1)
Top Pull Request Labels
- dependencies (4)
- github_actions (1)
- bug (1)
Package metadata
- Total packages: 3
-
Total downloads:
- cargo: 21,424 total
- pypi: 3,213 last-month
- Total dependent packages: 1 (may contain duplicates)
- Total dependent repositories: 0 (may contain duplicates)
- Total versions: 39
- Total maintainers: 6
pypi.org: altrios
Tool for modeling and optimization of advanced locomotive powertrains for freight rail decarbonization.
- Homepage: https://www.nrel.gov/transportation/altrios.html
- Documentation: https://altrios.readthedocs.io/
- Licenses: BSD-3-Clause
- Latest release: 0.3.0 (published 4 days ago)
- Last Synced: 2025-04-26T13:35:31.170Z (1 day ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 3,213 Last month
-
Rankings:
- Dependent packages count: 7.262%
- Average: 24.329%
- Dependent repos count: 41.395%
- Maintainers (2)
crates.io: altrios-proc-macros
ALTRIOS procedural macros
- Homepage: https://www.nrel.gov/transportation/altrios.html
- Documentation: https://docs.rs/altrios-proc-macros/
- Licenses: BSD-3-Clause
- Latest release: 0.2.3 (published 11 months ago)
- Last Synced: 2025-04-26T13:35:30.794Z (1 day ago)
- Versions: 9
- Dependent Packages: 1
- Dependent Repositories: 0
- Downloads: 9,385 Total
-
Rankings:
- Dependent repos count: 30.344%
- Dependent packages count: 31.691%
- Stargazers count: 33.011%
- Forks count: 41.181%
- Average: 46.605%
- Downloads: 96.799%
- Maintainers (4)
crates.io: altrios-core
ALTRIOS Core model for train simulation
- Homepage: https://www.nrel.gov/transportation/altrios.html
- Documentation: https://docs.rs/altrios-core/
- Licenses: BSD-3-Clause
- Latest release: 0.2.3 (published 11 months ago)
- Last Synced: 2025-04-26T13:35:30.692Z (1 day ago)
- Versions: 12
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 12,039 Total
-
Rankings:
- Dependent repos count: 30.344%
- Dependent packages count: 31.691%
- Stargazers count: 33.011%
- Forks count: 41.181%
- Average: 46.771%
- Downloads: 97.629%
- Maintainers (4)
Dependencies
- 237 dependencies
- actions-rs/toolchain v1 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions-rs/toolchain v1 composite
- actions/checkout v3 composite
- actions/download-artifact v2 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- pypa/gh-action-pypi-publish release/v1 composite
- matplotlib *
- numpy *
- openpyxl *
- pandas >=2
- plotly *
- polars *
- pyarrow *
- pymoo ==0.6
- pyyaml *
- seaborn *
- typing_extensions *
- xlrd *
- about-time ==4.2.1 development
- alive-progress ==3.1.2 development
- asttokens ==2.2.1 development
- autograd ==1.5 development
- backcall ==0.2.0 development
- black ==23.3.0 development
- click ==8.1.3 development
- cma ==3.2.2 development
- colorama ==0.4.6 development
- comm ==0.1.3 development
- contourpy ==1.0.7 development
- cycler ==0.11.0 development
- debugpy ==1.6.7 development
- decorator ==5.1.1 development
- deprecated ==1.2.13 development
- dill ==0.3.6 development
- et-xmlfile ==1.1.0 development
- exceptiongroup ==1.1.1 development
- executing ==1.2.0 development
- fonttools ==4.39.4 development
- future ==0.18.3 development
- grapheme ==0.6.0 development
- iniconfig ==2.0.0 development
- ipykernel ==6.23.0 development
- ipython ==8.13.2 development
- jedi ==0.18.2 development
- jupyter-client ==8.2.0 development
- jupyter-core ==5.3.0 development
- kiwisolver ==1.4.4 development
- matplotlib ==3.7.1 development
- matplotlib-inline ==0.1.6 development
- maturin ==0.15.1 development
- mypy-extensions ==1.0.0 development
- nest-asyncio ==1.5.6 development
- numpy ==1.24.3 development
- openpyxl ==3.1.2 development
- packaging ==23.1 development
- pandas ==2.0.1 development
- parso ==0.8.3 development
- pathspec ==0.11.1 development
- pickleshare ==0.7.5 development
- pillow ==9.5.0 development
- platformdirs ==3.5.1 development
- plotly ==5.14.1 development
- pluggy ==1.0.0 development
- polars ==0.17.14 development
- prompt-toolkit ==3.0.38 development
- psutil ==5.9.5 development
- pure-eval ==0.2.2 development
- pyarrow ==12.0.0 development
- pygments ==2.15.1 development
- pymoo ==0.6 development
- pyparsing ==3.0.9 development
- pytest ==7.3.1 development
- python-dateutil ==2.8.2 development
- pytz ==2023.3 development
- pywin32 ==306 development
- pyyaml ==6.0 development
- pyzmq ==25.0.2 development
- scipy ==1.10.1 development
- seaborn ==0.12.2 development
- six ==1.16.0 development
- stack-data ==0.6.2 development
- tenacity ==8.2.2 development
- tomli ==2.0.1 development
- tornado >=6.3.2 development
- traitlets ==5.9.0 development
- typing-extensions ==4.5.0 development
- tzdata ==2023.3 development
- wcwidth ==0.2.6 development
- wrapt ==1.15.0 development
- xlrd ==2.0.1 development
- about-time ==4.2.1
- alive-progress ==3.1.2
- autograd ==1.5
- cma ==3.2.2
- contourpy ==1.0.7
- cycler ==0.11.0
- deprecated ==1.2.13
- dill ==0.3.6
- et-xmlfile ==1.1.0
- fonttools ==4.39.4
- future ==0.18.3
- grapheme ==0.6.0
- kiwisolver ==1.4.4
- matplotlib ==3.7.1
- numpy ==1.24.3
- openpyxl ==3.1.2
- packaging ==23.1
- pandas ==2.0.1
- pillow ==9.5.0
- plotly ==5.14.1
- polars ==0.17.14
- pyarrow ==12.0.0
- pymoo ==0.6
- pyparsing ==3.0.9
- python-dateutil ==2.8.2
- pytz ==2023.3
- pyyaml ==6.0
- scipy ==1.10.1
- seaborn ==0.12.2
- six ==1.16.0
- tenacity ==8.2.2
- typing-extensions ==4.5.0
- tzdata ==2023.3
- wrapt ==1.15.0
- xlrd ==2.0.1
Score: 16.20359862421216