tlbo_optimization
Teaching-Learning-Based Optimization (TLBO) algorithm
Overview
The TLBO algorithm is a population-based optimization technique inspired by the teaching-learning process. This package provides an easy-to-use implementation of TLBO for optimizing various objective functions.
Features
Simple and intuitive interface for using TLBO
Supports multiple objective functions
Customizable parameters such as population size, number of dimensions, and bounds
Efficient optimization for various types of problems
Installation
You can install the package using pip:
pip install tlbo-optimization
Example
Here is an example of how to use the TLBO algorithm:
from tlbo_optimization.tlbo_optimization import TLBO
def objective_function(x):
return sum(x ** 2)
tlbo = TLBO(
population_size=30,
dimensions=5,
lower_bound=-10,
upper_bound=10,
max_iter=100,
obj_func=objective_function
)
best_solution, best_fitness = tlbo.optimize()
print(f"Best solution: {best_solution}")
print(f"Best fitness: {best_fitness}")
Contributing
Contributions are welcome! Please read the CONTRIBUTING.rst for details on how to contribute.
License
This project is licensed under the GNU General Public License v3.
Metadata
Release files for tlbo-optimization 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tlbo_optimization-0.1.0.tar.gz | 10.5 kB | Without provenance | Details for tlbo_optimization-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tlbo_optimization-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tlbo_optimization-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / tlbo_optimization-0.1.0.tar.gz
| Download URL | tlbo_optimization-0.1.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec7b6457b3b4cc0c0cb7060e1f39aabe4149f9dff3997bea28edb293e221c0f4
|
|
BLAKE2b-256 checksum How to use checksums |
97683397844f8dc6f14c6d92fb60019a38762cc94cf9b0b42781d252b4d1d553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / tlbo_optimization-0.1.0-py3-none-any.whl
| Download URL | tlbo_optimization-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1527ed73b58f2efa9c816e654566eff1a7dc752fab3e1a3ea2cb18f4077de1bc
|
|
BLAKE2b-256 checksum How to use checksums |
298c4225c81c87524bec64e407173e50b01d6d3cb0e8ba648a0b7b5ee4e6d58f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for tlbo-optimization 0.1.0
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.