Simulated Annealing with Metropolis algorithm w/ convergence tracking.
Project description
Metropolis
Implementación del algoritmo de Metropolis como núcleo del método de Simulated Annealing
Instalación
En tu entorno de Anaconda (u otro entorno virtual):
pip install -e .
Esto instala el paquete localmente en modo editable.
Si se prefiere usar dependencias explícitas:
pip install -r requirements.txt
Estructura Metropolis V5.0
Metropolis/
├── README.md
├── LICENSE
├── requirements.txt
├── metropolis/
│ ├── __init__.py # inicialización paquete
│ ├── core.py # núcleo del algoritmo
│ ├── schedule.py # funciones de temperatura (v2+)
│ ├── energies.py # funciones de temperatura (v5+)
│ └── visualization.py # para plots de convergencia (v3+)
├── run/
│ └── anneal.py
└── tests/
Ejecución
usage: anneal.py [-h] [--schedule {linear,exponential,logarithmic}] [--plot] {square,abs,cube,bimodal}
Execute Metropolis annealing with different energy landscapes and scheduling types
positional arguments:
{square,abs,cube,bimodal}
Energy landscape
options:
-h, --help show this help message and exit
--schedule {linear,exponential,logarithmic}
Type of scheduling to be used (default: exponential)
--plot Plotted Metropolis epochs
Ejemplos:
python -m run.anneal square --plot
python -m run.anneal bimodal --schedule exponential --plot
python -m run.anneal bimodal --schedule linear
Historial
V1.0 Motor Monte Carlo básico Ejemplo de uso
V2.0 Incorpora varios schedules de enfriamiento
V3.0
- Añadido Módulo
visualization.pypara graficar convergencia. - Corregido bug en orden de parámetros de llamada a la función scheduling
- Se evitan energías negativas
- Otros cambios menores.
V4.0
- Añadido soporte línea de comandos.
V5.0
- Versión final estable
- Posibilidad de indicar función paisaje-energético
- Cambiado
- Salida en inglés
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metropolis_sa-5.0.0.tar.gz.
File metadata
- Download URL: metropolis_sa-5.0.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99dc2339641d4aab70e1478080317a8fedeae60cc6b0d1e89896ffa773bc1426
|
|
| MD5 |
32cd2b4df05a7cb75d1256fec1ecda41
|
|
| BLAKE2b-256 |
ec0b5c45439692fa58b1d653b094b4804b80a7aa6fd5d4e186303fed8883bef8
|
File details
Details for the file metropolis_sa-5.0.0-py3-none-any.whl.
File metadata
- Download URL: metropolis_sa-5.0.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
413edeaf6d613d4e957ba74881f35b9348c217cfd2dface8f5a8f39f4fce8674
|
|
| MD5 |
68e87fcec4028685a26739a88b6cad40
|
|
| BLAKE2b-256 |
9a4277466db0e9f4272d2cd3b0e16f26fa2e4ec28b6d88029819463d7f62faa2
|