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

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page