tpt-power
RustA Rust workspace for modeling, simulating, and (eventually) safely controlling power systems — PV/load models, storage, forecasting, dispatch optimization, telemetry, and control policies across composable crates.
0 stars0 forks0 watchers
Languages
Rust100.0%
README
tpt-power
A Rust workspace for modeling, simulating, optimizing, and eventually safely controlling local and distributed power systems: generation, storage, transmission/distribution, load, forecasting, dispatch optimization, telemetry ingestion, and control logic.
Local-first, simulation-before-actuation, and built from reusable crates rather than a single monolithic app.
Crates
| Crate | Responsibility |
|---|---|
tpt-power-core | Quantities, units, IDs, time, errors |
tpt-power-assets | Sites, buses, assets, topology |
tpt-power-models | PV, load, loss, and generator models |
tpt-power-storage | Battery / storage state and constraints |
tpt-power-forecast | Forecast types and naive forecasters |
tpt-power-solve | Dispatch and power-flow solving |
tpt-power-control | Control policies and safety limiters |
tpt-power-telemetry | Telemetry ingestion and replay |
tpt-power-sim | Simulation orchestration |
tpt-power-cli | Command-line interface (tpt-power) |
Getting started
cargo build --workspace
cargo test --workspace
Run a simulation:
cargo run -p tpt-power-cli -- simulate --site examples/home-pv-battery/site.toml --scenario examples/home-pv-battery/scenario.toml
License
Licensed under either of
- MIT license (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
at your option.
Copyright (c) 2026 TPT Solutions.