Skip to main content

Production planning and optimization engine using linear programming to balance supply with demand while minimizing costs and respecting resource constraints

Project description

Balance Engine Optimization Icon
Balance Engine

GitHub License: MIT PyPI version Crates.io Crates.io Downloads

A Python/Rust module for production planning and optimization using linear programming.

Balance Engine automates calculations to balance production with demand, allowing for precise and efficient planning while reducing costs. It uses linear programming modeling to optimize resource allocation in limited production cycles.

The tool handles key production variables including:

  • Yielded Supply
  • On Hand (Finished Goods)
  • Safety Stock Targets
  • Sellable Supply
  • Effective Demand
  • Total Projected Inventory Balance

Installation

Python Package

pip install balance-engine

Rust Crate

cargo add balance_engine

Features

  • Hybrid Architecture: Core optimization in Rust for performance, Python API for flexibility
  • Production Planning: Balance supply with demand while respecting capacity constraints
  • Inventory Management: Calculate optimal inventory levels that meet safety stock requirements
  • Resource Allocation: Efficiently allocate limited resources in production cycles

Project Structure

  • Rust Core: High-performance linear programming solver
  • Python Interface: Easy-to-use API for integration with data analysis workflows
  • Example Code: Sample implementations for common production planning scenarios

Usage

import engine

# Initialize the engine
engine.init()

# Use the optimization functions
result = engine.optimize_production_plan(
    products=["ProductA", "ProductB"],
    demand_dict={"ProductA": 100, "ProductB": 150},
    production_rates_dict={"ProductA": 10, "ProductB": 15},
    available_hours=20,
    current_inventory_dict={"ProductA": 20, "ProductB": 10},
    min_inventory_dict={"ProductA": 10, "ProductB": 20}
)

print(result)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

balance_engine-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balance_engine-0.0.2-cp310-abi3-win_amd64.whl (115.0 kB view details)

Uploaded CPython 3.10+Windows x86-64

File details

Details for the file balance_engine-0.0.2.tar.gz.

File metadata

  • Download URL: balance_engine-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for balance_engine-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0aeba63031cc54b8daca75401c15c18bf9602a04afd74fa6df7b9ed1ef4abfb8
MD5 e5b2594321a939d91fd3c0ba8fb70270
BLAKE2b-256 e626ae1af85ceb22e40487e79592e053d56befe12b20fc8432574cb975380a56

See more details on using hashes here.

File details

Details for the file balance_engine-0.0.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for balance_engine-0.0.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 585738dd36bd18676b2d98bd301e39ee89aa47442c076ee04078d01b56f196f1
MD5 29da8fb14898057fb934ada64bd079ee
BLAKE2b-256 4952c6365795b21d94f4fe4b0eee0d7ba375322d0f4c22ba154d5e46a687fdb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page