Skip to main content

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.cpsat components)

🚀 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, num_workers=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 SubroutineController to define custom LNS or hybrid metaheuristics
  • Extend CustomCpModel to support new problem domains
  • Compose repeatable flows with structured routine names and modular inputs

License

MIT License

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

mbls-0.0.10.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

mbls-0.0.10-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file mbls-0.0.10.tar.gz.

File metadata

  • Download URL: mbls-0.0.10.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for mbls-0.0.10.tar.gz
Algorithm Hash digest
SHA256 4ee338215648c0eb8a514a50fa09510c327d97798f1b6ef683510a349353b6a7
MD5 0c102eed04977ccdedec910ae919ff15
BLAKE2b-256 78943711a371fa11a94a03ab062ca0b5e4a8ecbb467ea3c29050a5e5413c746a

See more details on using hashes here.

File details

Details for the file mbls-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: mbls-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for mbls-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9684ab47a8821ce4986c6721c52581435889b8dd303e814f7ccf1918babffa79
MD5 c1a5e2b2598d2fff4915b7ad991ff9a1
BLAKE2b-256 e5e6b3414d707b7c4ceb09a0f0c0b0aa4e67d4f1b3f7d7196c750168de707b39

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