Skip to main content
https://img.shields.io/pypi/v/tlbo_optimization.svg https://img.shields.io/travis/smbd1368/tlbo_optimization.svg

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.

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)

Source distribution for tlbo-optimization 0.1.0
File Size Uploaded
tlbo_optimization-0.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tlbo-optimization 0.1.0
File Interpreter ABI Platform
tlbo_optimization-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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