Model-Based Local Search algorithm designer built on Routix
Reason this release was yanked:
No version record on GitHub repo
Project description
mbls
A Python toolkit for Model-Based Local Search algorithm design.
Built on top of Routix, it provides a modular framework for orchestrating subroutines, managing experimental runs, and integrating mathematical models into heuristic search routines.
Features
- Modular Architecture Compose and extend LNS-style strategies using reusable subroutine components.
- Seamless Routix Integration Take advantage of structured routine execution, logging, timers, and experiment summarization.
- Extensible Modeling Layer Easily add custom models, constraints, or solvers.
✅ Includes support for OR-Tools CP-SAT via mbls.cpsat.
Installation
pip install mbls
Requirements
- routix (experiment orchestration)
- ortools (for
mbls.cpsatcomponents)
🚀 Example
from mbls.cpsat import CustomCpModel
# Initialize model
model = CustomCpModel()
# Define variables, constraints, and objective
# ...
# Configure and solve
model.init_solver(computational_time=10.0, n_threads=4)
status, elapsed, ub, lb = model.solve_and_get_status(10.0, 4)
print(f"Status: {status}, UB: {ub}, LB: {lb}")
🧩 Extendability
mbls is designed for research and experimentation. You can:
- Subclass
SubroutineControllerto define custom LNS or hybrid metaheuristics - Extend
CustomCpModelto support new problem domains - Compose repeatable flows with structured routine names and modular inputs
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mbls-0.0.3.tar.gz.
File metadata
- Download URL: mbls-0.0.3.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823eed16068cee4fac383fd487446ddff29ee705b9398a9d8112d75cc84bc6f7
|
|
| MD5 |
0c54a0919da4d3bbd5fe15d5b3f069f2
|
|
| BLAKE2b-256 |
64df3ae6d6d45c3bb625a4bd40e7ebe57603c42c1c71c2d3b17da19c74f12f21
|
File details
Details for the file mbls-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mbls-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb00b3c65e46eb54e38063c35a79ae707485eb0276741ac47636af82e4df93f3
|
|
| MD5 |
7a9cea31b5c622137fab08cf12a8b55d
|
|
| BLAKE2b-256 |
33b9090635f84cac35293bec5305a66419f52d1abf66c7d2c2c522f89e9dc74e
|