Skip to main content

Bulk Material Homogenization (bmh)

PyPI version License: MIT

Library for the simulation, optimization and evaluation of bulk material homogenization in blending beds: materials and stacker depositions, stacking and reclaiming with the simulators of blending-simulation (through blending_simulator_lib) or mathematical models, and the evaluation of the reclaimed material.

Installation

pip install bmh

Wheels of the simulator bindings are published for Python 3.12 to 3.14 on Linux, Windows and macOS.

Example

Stack a material of ten quality values in seven stacker positions on a 300 m by 50 m bed, reclaim it and evaluate the reclaimed material:

from bmh.helpers import simple
from bmh.helpers.reclaimed_material_evaluator import ReclaimedMaterialEvaluator

bed_size_x, bed_size_z = 300, 50
material_deposition = simple.generate_material_deposition(
    quality=[1, 5, 3, 10, 5, 8, 3, 9, 3, 1],
    total_volume=100_000,
    x_position=[140, 25, 275, 150, 275, 25, 150],
    bed_size_x=bed_size_x,
    bed_size_z=bed_size_z,
)
reclaimed = simple.bsl_stack_reclaim(material_deposition)  # reclaimed.data: a pandas data frame with one row per slice

evaluator = ReclaimedMaterialEvaluator(reclaimed=reclaimed, x_min=0.5 * bed_size_z, x_max=bed_size_x - 0.5 * bed_size_z)
print(evaluator.get_single_parameter_stdev("quality"))  # F1: standard deviation of the reclaimed quality
print(evaluator.get_volume_stdev())  # F2: deviation of the reclaimed volume from the ideal stockpile

example.ipynb in the repository adds plots of the reclaimed volume and quality.

Modules

Module Contents
bmh.benchmark materials, depositions and their combination (Material, Deposition, MaterialDeposition), the simulator benchmark data
bmh.simulation simulators behind one interface: BslBlendingSimulator (the simulators of blending_simulator_lib), MathematicalBlendingSimulator, SmoothBlendingSimulator
bmh.helpers quick setups (simple), the standard bed (bed_setup), the Chevron, continuous drops along the stacker path, the ideal stockpile, the evaluation of reclaimed material, non-dominated fronts
bmh.optimization deposition optimization with jMetalPy (HomogenizationProblem, DepositionOptimizer), kept unchanged to reproduce the benchmark experiments of 2021 and 2022

Metadata

Release files for bmh 2026.2.2

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

Source distribution (sdist)

Source distribution for bmh 2026.2.2
File Size Uploaded Provenance Actions
bmh-2026.2.2.tar.gz 48.4 kB With provenance Details for bmh-2026.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bmh 2026.2.2
File Interpreter ABI Platform Actions
bmh-2026.2.2-py3-none-any.whl Python 3 none any Details for bmh-2026.2.2-py3-none-any.whl

Total release size: 111.6 kB

Release files / bmh-2026.2.2.tar.gz

Download URL bmh-2026.2.2.tar.gz
Size 48.4 kB
Tags Source
SHA-256 checksum
How to use checksums
18b7f0f149e2f86c104319eab4fc89cc54b74e2c793cb478c39ab9d7df01f0c7
BLAKE2b-256 checksum
How to use checksums
fd0319d27359531f86027c52248b9c62a4c1c7362e92d63e9b499b7437d652e0
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 28, 2026.

Transparency log

Release files / bmh-2026.2.2-py3-none-any.whl

Download URL bmh-2026.2.2-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bafd6ec1d27dc4f33ee7fa44343a817e9878531e26ba25912651bee1fddf04c
BLAKE2b-256 checksum
How to use checksums
aac011da0d63f0d91407a31dfa5a2cb91a3ea13acda4576a0e1b7feb31130dcf
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 28, 2026.

Transparency log

Security for bmh 2026.2.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bmh-2026.2.2.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 28, 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