Skip to main content

This package is a collection of optimization algorithms. The aim is high diversity of optimizers and eased of use.

For documentation, Visit this.

Usage

from bejoor.genetic import BaseGeneticAlgorithm

def func(sol):
    return abs( (sol[0]**sol[3] + sol[1]**sol[3] - sol[2]**sol[3]))


solution_vector =  [{"type": "integer", "lower_bound": 1, "upper_bound": 500}] * 3 + \
                   [{"type": "integer", "lower_bound": 2, "upper_bound": 100}] + \
                   [{"type": "float", "lower_bound": 0, "upper_bound": 1}] * 2 + \
                   [{"type": "string", "possible_values": ["option1", "option2", "option3"]}]

bga = BaseGeneticAlgorithm(objective_function=func, solution_vector_size=7,
                           solution_vector=solution_vector, optimization_side="min", target_objective_upper_bound=5,
                           crossover_probability=0.9, mutation_probability=0.1,
                           elitism_rate=0.05, selection_strategy="roulette",
                           crossover_type="one-point", population_size=500, epochs=200)

bga.run()

print(bga.best_solution)
print(bga.best_objective_value)

Metadata

Release files for bejoor 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bejoor 0.1.6
File Size Uploaded Provenance Actions
bejoor-0.1.6.tar.gz 25.7 kB Without provenance Details for bejoor-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bejoor 0.1.6
File Interpreter ABI Platform Actions
bejoor-0.1.6-py3-none-any.whl Python 3 none any Details for bejoor-0.1.6-py3-none-any.whl

Total release size: 76.6 kB

Release files / bejoor-0.1.6.tar.gz

Download URL bejoor-0.1.6.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
79002beb8ad0c293964b6984da408f6107e8c34ab5a232f9173b60ef7924c0aa
BLAKE2b-256 checksum
How to use checksums
fa03cb106bf89da7a9c620400b18d756089c00bd4417e853e9ace4f4dd8df8b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / bejoor-0.1.6-py3-none-any.whl

Download URL bejoor-0.1.6-py3-none-any.whl
Size 50.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b51df4ec07c45076edcef3fa5ca1a4c04f8d73967c98f66bad0b4da63c37629b
BLAKE2b-256 checksum
How to use checksums
4fa623c6c0e303c747d9c90d201bbd2ad340646f21a6660f3beea82f2b4e9588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for bejoor 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page