Skip to main content

pyBlindOpt

A library that implements several derivation-free optimization algorithms (such as genetic optimization). Currently, it implements six different algorithms:

  1. Hill climbing is a mathematical optimization technique that belongs to the family of local search. It is an iterative algorithm that starts with an arbitrary solution to a problem and then attempts to find a better solution by making an incremental change to the solution.
  2. Simulated annealing is a probabilistic technique for approximating the global optimum of a given function. Specifically, it is a metaheuristic to approximate global optimization in a large search space for an optimization problem.
  3. Genetic algorithm is a metaheuristic inspired by the process of natural selection that belongs to the larger class of evolutionary algorithms (EA). Genetic algorithms are commonly used to generate high-quality solutions to optimization and search problems by relying on biologically inspired operators such as mutation, crossover, and selection.
  4. Differential evolution is a method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. Such methods are commonly known as metaheuristics as they make few or no assumptions about the problem being optimized and can search very large spaces of candidate solutions.
  5. Particle swarm optimization is a computational method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality. It solves a problem by having a population of candidate solutions, here dubbed particles, and moving these particles around in the search space according to simple mathematical formula over the particle's position and velocity. Each particle's movement is influenced by its local best-known position but is also guided toward the best-known positions in the search space, which are updated as better positions are found by other particles.
  6. Grey Wolf Optimization (GWO) is a population-based meta-heuristics algorithm that simulates the leadership hierarchy and hunting mechanism of grey wolves in nature.

All the algorithms take advantage of the joblib library to speed up the objective function and cache the results. The code was optimized to a certain degree but was made for teaching purposes. Please consider other libraries if you are looking for a stable implementation, such as pymoo. Regardless, any reported issues will be fixed as possible.

Installation

The library can be used by adding this line to the requirement.txt file:

git+https://github.com/mariolpantunes/pyBlindOpt@main#egg=pyBlindOpt

Or add the following line to the requirements.txt file:

pyBlindOpt>=0.1.3.12

Documentation

This library was documented using the google style docstring, it can be accessed here. Run the following commands to produce the documentation for this library.

pdoc --math -d google -o docs pyBlindOpt

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Status

Python CI

MIT License

Copyright (c) 2021 Mário Antunes

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pyBlindOpt 0.1.3.12

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

Source distribution (sdist)

Source distribution for pyBlindOpt 0.1.3.12
File Size Uploaded Provenance Actions
pyblindopt-0.1.3.12.tar.gz 17.9 kB Without provenance Details for pyblindopt-0.1.3.12.tar.gz

Built distribution (wheel)

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

Total release size: 42.9 kB

Release files / pyblindopt-0.1.3.12.tar.gz

Download URL pyblindopt-0.1.3.12.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5c0ce06a55ec4efcaf9369496faa569742241a524818c0dc4474cadbe9b2e99f
BLAKE2b-256 checksum
How to use checksums
3c2cd6653cb348af065c4dc35b1daf1781dda45345288952bb91933b29bdae36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pyblindopt-0.1.3.12-py3-none-any.whl

Download URL pyblindopt-0.1.3.12-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fed48dda86e2ea8b7a745673def2515d2a6a3848ffbd801a38c43b0f0314b009
BLAKE2b-256 checksum
How to use checksums
3ed92ee657a7c5dea4b72ea244723949f1b56a556ccbdff04d203472bd378427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for pyBlindOpt 0.1.3.12

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