Skip to content

Commit

Permalink
fixing up, deployed to pip
Browse files Browse the repository at this point in the history
  • Loading branch information
100 committed Jun 19, 2017
1 parent da64af7 commit a11d215
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 11 deletions.
11 changes: 11 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# file GENERATED by distutils, do NOT edit
setup.cfg
setup.py
Solid/EvolutionaryAlgorithm.py
Solid/GeneticAlgorithm.py
Solid/HarmonySearch.py
Solid/ParticleSwarm.py
Solid/SimulatedAnnealing.py
Solid/StochasticHillClimb.py
Solid/TabuSearch.py
Solid/__init__.py
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Metaheuristics-library-placeholder
# Solid

## *Solid* is a simple library for gradient-free optimization.

#### It contains basic versions of many of the most common algorithms, and allows for very rapid development using them.

#### It's a very versatile library that's great for learning, modifying, and of course, using out-of-the-box.

<hr>

## Current Features:
* Genetic Algorithm
Expand All @@ -12,10 +20,10 @@
<hr>

## Usage:
* ```pip install```
* ```pip install solidpy```
* Import the relevant algorithm
* Create a class that inherits from that algorithm, and that implements the necessary abstract methods
* Call its ```.run()``` method
* Call its ```.run()``` method, which always returns the best solution and its objective function value

<hr>

Expand All @@ -24,7 +32,7 @@
```python
from random import choice, randint, random
from string import lowercase
from library.EvolutionaryAlgorithm import EvolutionaryAlgorithm
from Solid import EvolutionaryAlgorithm


class Algorithm(EvolutionaryAlgorithm):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from distutils.core import setup
setup(
name = 'solidpy',
packages = ['Solid'],
version = '0.1',
description = 'A comprehensive gradient-free optimization library',
author = 'Devin Soni',
author_email = 'devinsoni1010@gmail.com',
url = 'https://github.com/100/Solid',
download_url = 'https://github.com/100/Solid/archive/0.1.tar.gz',
keywords = ['metaheuristic', 'optimization', 'algorithm', 'artificial intelligence', 'machine learning'],
classifiers = ['Programming Language :: Python :: 2.7'],
)
2 changes: 1 addition & 1 deletion tests/test_evolutionary_algorithm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from random import choice, randint, random
from string import lowercase
from library.EvolutionaryAlgorithm import EvolutionaryAlgorithm
from Solid.EvolutionaryAlgorithm import EvolutionaryAlgorithm


class Algorithm(EvolutionaryAlgorithm):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_genetic_algorithm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from random import choice
from library.GeneticAlgorithm import GeneticAlgorithm
from Solid.GeneticAlgorithm import GeneticAlgorithm


class Algorithm(GeneticAlgorithm):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_harmony_search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from random import uniform
from library.HarmonySearch import HarmonySearch
from Solid.HarmonySearch import HarmonySearch


class Algorithm(HarmonySearch):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_particle_swarm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from library.ParticleSwarm import ParticleSwarm
from Solid.ParticleSwarm import ParticleSwarm


class Algorithm(ParticleSwarm):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simulated_annealing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from random import uniform
from library.SimulatedAnnealing import SimulatedAnnealing
from Solid.SimulatedAnnealing import SimulatedAnnealing
from numpy import array


Expand Down
2 changes: 1 addition & 1 deletion tests/test_stochastic_hill_climb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from random import uniform
from library.StochasticHillClimb import StochasticHillClimb
from Solid.StochasticHillClimb import StochasticHillClimb
from numpy import array


Expand Down
2 changes: 1 addition & 1 deletion tests/test_tabu_search.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from random import choice, randint, random
from string import lowercase
from library.TabuSearch import TabuSearch
from Solid.TabuSearch import TabuSearch
from copy import deepcopy


Expand Down

0 comments on commit a11d215

Please sign in to comment.