| Crates.io | balance_engine |
| lib.rs | balance_engine |
| version | 0.0.3-rc1 |
| created_at | 2025-04-16 02:12:41.525874+00 |
| updated_at | 2025-04-17 01:52:30.894655+00 |
| description | Production planning and optimization engine using linear programming to balance supply with demand while minimizing costs and respecting resource constraints |
| homepage | |
| repository | https://github.com/Yrrrrrf/balance_engine |
| max_upload_size | |
| id | 1635563 |
| size | 41,079 |
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:
pip install balance-engine
cargo add balance_engine
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)
This project is licensed under the MIT License - see the LICENSE file for details.