Skip to main content

Best-Arm Identification based Combinatorial Optimization Algorithms.

Project description

BAICO

BAICO (Best Arm Identification-based Combinatorial Optimization Algorithms) is a collection of discrete optimization algorithms for stochastic objective functions based on the best arm identification technique.

Install

pip3 install baico

Usage

import random
weights = {
    'a': 1,
    'b': 2,
    'c': 3,
    'd': 4,
}
def fn(S): return sum(weights[a] * random.random() for a in S)
support = weights.keys()

solver = StochasticGreedy(fn=fn, support=support, cardinality=2)
S = solver.optimal_solution()
..frozenset({'d', 'c'})

Licenses

This project is licensed under the 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

baico-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file baico-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: baico-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for baico-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aec1127627ee428b04713b267c1fa14c277415d73ac4c2efeba2171fe137d68
MD5 32a9070a0a9d013d9e58522911b0c023
BLAKE2b-256 04ab97b991d0d1e909ac6c43b8d47b3094f6b678d1dcc9106c832c3d3f6191c5

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