Skip to main content

Librería de algoritmos genéticos y cuánticos desarrollada por Luis

Project description

🧬 RelaxGEN: Librería de Algoritmos de Optimización Genética y Probabilística

PyPI Version License GitHub last commit Python Version

💡 ¿Qué es RelaxGEN?

RelaxGEN es una librería Python de alto nivel diseñada para facilitar la implementación y experimentación con diferentes modelos de optimización metaheurística. Ofrece una API unificada para tres paradigmas principales:

  1. Algoritmos Genéticos Clásicos: Basados en codificación binaria y operadores estándar.
  2. Algoritmos Genéticos Cuánticos (QGA): Utilizando representación probabilística (Qubits) para una búsqueda más eficiente.
  3. Algoritmos de Estimación de Distribución (EDA): Modelado probabilístico para generar nuevas poblaciones.

El objetivo principal es proporcionar una herramienta flexible y rápida para la optimización de funciones y el ajuste de modelos complejos.

🚀 Instalación

La forma más sencilla de instalar es a través de pip:

pip install relax-gen

Uso Rápido

import numpy as np
import relax_gen.GEN as rg

def funcion_test(x):
    return (np.sin(5*x) + 1.5*np.sin(2*x)) * np.exp(-0.1 * x**2)

print("Inicio")
menu = rg(funcion_test,  
           population=300, 
           i_min=-2, 
           i_max=2
           )

best_individual = menu.alg_stn_bin()

La librería relax-gen te permite elegir entre tres modelos de optimización diferentes. Los parámetros de inicialización varían según el algoritmo seleccionado.

Más información sobre las distintas funciones se encuentra en la Wiki: https://github.com/LuisPablo54/relax_gen/wiki

🤝 Contribuciones

¡Las contribuciones son bienvenidas! Si deseas agregar un nuevo algoritmo genético, mejorar la documentación o reportar un error, por favor revisa la guía de contribución.

  • Haz un Fork del repositorio.
  • Crea una rama.
  • Commitea tus cambios.
  • Empuja al branch.
  • Abre un Pull Request.

📄 Licencia

Este proyecto está bajo la Licencia MIT. Consulta el archivo LICENSE para más detalles.

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

relax_gen-0.3.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

relax_gen-0.3.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file relax_gen-0.3.0.tar.gz.

File metadata

  • Download URL: relax_gen-0.3.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for relax_gen-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bef85520b147f14c017f8f77443c3737f3a424925b96a65cf99fd297b65a5c90
MD5 764ea72d2305fd8688e552459dd51eb7
BLAKE2b-256 268e4e65be42c7e974d02d59f8c2083687ccc4b9b6a5cc8da4aa7b3116f00acf

See more details on using hashes here.

File details

Details for the file relax_gen-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: relax_gen-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for relax_gen-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57899b1ab9d60a7d5bc507c1cbd4e6e19e68d5bf03290523c5704f5adce99e4e
MD5 e061f28fe488d28d75c44c5d76f4421d
BLAKE2b-256 aaf25392a14ff48dcd45dc5d79945ca2a6dfa97b5f1da56843c588e910a48465

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page