Skip to main content

Teaching-Learning-Based Optimization (TLBO) algorithm

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tlbo_optimization-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

tlbo_optimization-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tlbo_optimization-0.1.0.tar.gz.

File metadata

  • Download URL: tlbo_optimization-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tlbo_optimization-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec7b6457b3b4cc0c0cb7060e1f39aabe4149f9dff3997bea28edb293e221c0f4
MD5 ed2d844af9394456211486e9d8b5e487
BLAKE2b-256 97683397844f8dc6f14c6d92fb60019a38762cc94cf9b0b42781d252b4d1d553

See more details on using hashes here.

File details

Details for the file tlbo_optimization-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tlbo_optimization-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1527ed73b58f2efa9c816e654566eff1a7dc752fab3e1a3ea2cb18f4077de1bc
MD5 69c78bd0e0c7b488be8da372417b1ab9
BLAKE2b-256 298c4225c81c87524bec64e407173e50b01d6d3cb0e8ba648a0b7b5ee4e6d58f

See more details on using hashes here.

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