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, 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 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.4.tar.gz (15.5 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.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mbls-0.0.4.tar.gz
Algorithm Hash digest
SHA256 225f659c849ca09d6b632d984d634770d4ec4374f67c8233766f5203ad81b6a8
MD5 3575f0502c962ae8eddc31ada0e827fc
BLAKE2b-256 0be12e1ec15a08b7944d7bbce9887e4165ac6e1735c0c39ebfa28080be361848

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mbls-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3061e48d1dff84db6bed136a8aee5edf4171bc5d1e5e60b53782e12caff485
MD5 f5f0a0f9c69f5204fba40dbc616d605e
BLAKE2b-256 0a889d4ee7e54400a6496ee98539dd3688ad051337e659de2e7e52a6f0b16efa

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