Optimization method for solving boundary-value inverse problem based on a combined simulated annealing and genetic algorithm
Project description
SAGA_optimize is a novel type of combined simulated annealing and genetic algorithm used to find the optimal solutions to a set of parameters based on a given energy function calculated using the set of parameters.
Citation
Please cite the GitHub repository until our manuscript is accepted for publications: https://github.com/MoseleyBioinformaticsLab/SAGA_optimize.git
Installation
SAGA_optimize runs under Python 3.6+ and is available through python3-pip. Install via pip or clone the git repo and install the following dependencies and you are ready to go!
Install on Linux
Pip installation
python3 -m pip install SAGA-optimize
GitHub Package installation
Make sure you have git installed:
git clone https://github.com/MoseleyBioinformaticsLab/SAGA_optimize.git
Dependecies
SAGA_optimize requires the following Python libraries:
JSONPickle for saving Python objects in a JSON serializable form and outputting to a file.
Quickstart
>>> import SAGA_optimize
>>> saga = SAGA_optimize.SAGA(stepNumber=100000, temperatureStepSize=100, startTemperature=0.5,
alpha=1, direction=-1, energyCalculation=energyCalculation, crossoverRate=0.5,
mutationRate=3, annealMutationRate=1, populationSize=20) # SAGA instance creation.
>>> saga.addElementDescriptions(SAGA_optimize.ElementDescription(low=0, high=10),
SAGA_optimize.ElementDescription(low=0, high=10),
SAGA_optimize.ElementDescription(low=0, high=10),
SAGA_optimize.ElementDescription(low=0, high=10),
SAGA_optimize.ElementDescription(low=0, high=10)) # Add optimized parameters.
>>> optimized_population = saga.optimize() # the population returned after the opitimization.
License
Made available under the terms of The Clear BSD License. See full license in LICENSE.
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
File details
Details for the file SAGA_optimize-1.0.3.3.tar.gz
.
File metadata
- Download URL: SAGA_optimize-1.0.3.3.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f96481548e82f557a621b8b04cdd77f81acd68a36ae90c64d5124272ba3429 |
|
MD5 | a4fbb30bd1d3cc0d2e1a2976f026fffc |
|
BLAKE2b-256 | e09412fe93941486a6aab32c66bfd41673c8f9080d875f937d416923bb9b2ec5 |