powerio_dist/pmd/mod.rs
1//! The PowerModelsDistribution ENGINEERING model as JSON ("PMD JSON").
2//!
3//! The byte conventions follow PMD's own `print_file`/`parse_file` pair:
4//! matrices as arrays of arrays read back via `hcat` (inner arrays are
5//! columns), `Inf`/`NaN` as `null` restored by field suffix (`_ub`/`max`
6//! to +Inf, `_lb`/`min` to -Inf, anything else NaN), enums as uppercase
7//! strings, kV and kW scales with angles in degrees, meters for lengths,
8//! per unit transformer impedances, and integer terminals with grounding
9//! as `grounded` plus `rg`/`xg` on the bus.
10
11mod read;
12mod write;
13
14pub use read::{parse_pmd_file, parse_pmd_str};
15pub use write::write_pmd_json;