Skip to main content

novomodelo

Python bindings for the Novomodelo power systems solver.

Novomodelo is a high-performance SDDP (Stochastic Dual Dynamic Programming) solver for hydrothermal dispatch, written in Rust. This package provides Python access to case loading, validation, training, simulation, and result inspection.

Installation

pip install novomodelo-python

Prebuilt wheels are published for:

  • Linux x86_64 (manylinux_2_34)
  • Linux aarch64 (manylinux_2_28)
  • Linux musl x86_64 (musllinux_1_2)
  • macOS Apple Silicon (aarch64) and Intel (x86_64)
  • Windows x86_64
  • Python 3.12+

The x86_64 Linux wheel is tagged manylinux_2_34, so it needs glibc 2.34 or newer: RHEL and Rocky Linux 9+, Ubuntu 22.04+, Debian 12+. RHEL 8 and Ubuntu 20.04 are older, so pip does not select the wheel there. The aarch64 Linux wheel is tagged manylinux_2_28 (glibc 2.28 or newer).

Where no wheel fits, pip builds the published sdist instead, which needs a Rust toolchain (1.88+), cmake and a C++ compiler. The same toolchain builds the package from the root of a clone made with git clone --recurse-submodules (the solvers are vendored as submodules):

pip install ./crates/novomodelo-python

Quick Start

import novomodelo

# Load and validate a case
system = novomodelo.io.load_case("path/to/case")
print(
    f"System: {system.n_buses} buses, {system.n_hydros} hydros, {system.n_thermals} thermals"
)

# Run training + simulation
result = novomodelo.run.run("path/to/case", output_dir="output/")
print(f"Converged: {result['converged']}, LB: {result['lower_bound']:.2f}")

convergence = novomodelo.results.load_convergence("output/")
print(f"Iterations: {len(convergence)}")

simulation = novomodelo.results.load_simulation("output/")
print(f"Cost records: {len(simulation['costs'])}")

policy = novomodelo.results.load_policy("output/")
print(f"Iterations completed: {policy['metadata']['producer']['completed_iterations']}")

The same workflow, driven step by step:

# The Study lifecycle — construct, train, simulate
study = novomodelo.Study("path/to/case", output_dir="output/")
policy = study.train()
summary = study.simulate(policy)
print(f"Scenarios: {summary['n_scenarios']}, Completed: {summary['completed']}")

# Inspect the study before running any phase
print(f"Stages: {study.stochastic['n_stages']}, Seed: {study.stochastic['seed']}")

Modules

  • novomodelo.io — Load and validate case directories
  • novomodelo.model — Data model classes (System, Bus, Line, Thermal, Hydro, etc.)
  • novomodelo.run — Execute SDDP training and simulation
  • novomodelo.results — Load and inspect output artifacts, including convergence history, Parquet simulation outputs, and FlatBuffers policy (FCF) checkpoints
  • novomodelo.schema — JSON Schema export for case-directory input types
  • novomodelo.errors — Typed exception hierarchy for case-loading and solver errors

The package also exports Study, Policy, write_policy_checkpoint, and version_info at the top level.

Requirements

  • Python >= 3.12
  • No runtime dependencies (the Rust solver is statically linked)

License

Apache-2.0 — see LICENSE.

Metadata

Release files for novomodelo-python 0.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for novomodelo-python 0.20.0
File Size Uploaded Provenance Actions
novomodelo_python-0.20.0.tar.gz 12.2 MB With provenance Details for novomodelo_python-0.20.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for novomodelo-python 0.20.0
File Actions
novomodelo_python-0.20.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for novomodelo_python-0.20.0-cp312-abi3-win_amd64.whl
novomodelo_python-0.20.0-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details for novomodelo_python-0.20.0-cp312-abi3-musllinux_1_2_x86_64.whl
novomodelo_python-0.20.0-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for novomodelo_python-0.20.0-cp312-abi3-manylinux_2_34_x86_64.whl
novomodelo_python-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for novomodelo_python-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl
novomodelo_python-0.20.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for novomodelo_python-0.20.0-cp312-abi3-macosx_11_0_arm64.whl
novomodelo_python-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for novomodelo_python-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 73.5 MB

Release files / novomodelo_python-0.20.0.tar.gz

Download URL novomodelo_python-0.20.0.tar.gz
Size 12.2 MB
Tags Source
SHA-256 checksum
How to use checksums
41e354336e3533ccc713081d706bafc9f81b33a6f0bfe5eee01b2d825e897ed1
BLAKE2b-256 checksum
How to use checksums
79cc4ddafe788c78efdcbee1656557824713da61fbb3340da2c5c7f07e0ea4e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-win_amd64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-win_amd64.whl
Size 8.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
edb7dddb5ed441383e111511e0e2ed248481506ce8cfeadcbfc63c74442ffd9f
BLAKE2b-256 checksum
How to use checksums
b8c6b8f84b0a7146344be55aa6f8c3451c373791b8cfd360c079407063c53646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-musllinux_1_2_x86_64.whl
Size 16.3 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
b5d6ebb6c7f03d9214babfc20f49a82dca0579f858574d277a11215656f82acc
BLAKE2b-256 checksum
How to use checksums
221828037aeb7dbbbce6c07e5f8baf31cce4b509109782bd5b9235d01dcfcaea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-manylinux_2_34_x86_64.whl
Size 9.9 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
313393a1f374b8f9776c696672944aa40f731a54b504d3bbbe6cf385b3f6db51
BLAKE2b-256 checksum
How to use checksums
5e3549856436446519038491152800a585cf1d638d5ba480d2acd6b64944d093
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-manylinux_2_28_aarch64.whl
Size 9.3 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
48a15623bd9e46ef8f60f425ab45b95fe67f816e45af516268006b9575a24c89
BLAKE2b-256 checksum
How to use checksums
472349e3bfc4eb2cd4ded50f01004355544cd50d537611ded706a06fdb7281b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6853a3d941ff899be919aab58dc0f2e132a32a1cb2f63a7289d3e5854b875d33
BLAKE2b-256 checksum
How to use checksums
cf04f841ab4497f0f9e8c0924344c0b36abf87ab875848eab61aa3fe1bb41740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / novomodelo_python-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL novomodelo_python-0.20.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 9.2 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e1a3e20aaad9b90a0f44176077e22dce9e5e850a5a47d553514aa0ee791f241d
BLAKE2b-256 checksum
How to use checksums
4649d5e2458fbc62a5416dd31e7a60ea61f0f92c3fcd703d59ba6a40d0fccf10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for novomodelo-python 0.20.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for novomodelo_python-0.20.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page