Giter Site home page Giter Site logo

lanl / pyharmonysearch Goto Github PK

View Code? Open in Web Editor NEW
80.0 9.0 23.0 121 KB

pyHarmonySearch is a pure Python implementation of the harmony search (HS) global optimization algorithm.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
harmony-search python optimization-algorithms applied-mathematics heuristic-search-algorithms

pyharmonysearch's Issues

Return history

Hi @gfairchild , I have extended HarmonySearch to return harmony history as well. At the moment, it saves the harmonies after N evaluations, where N is the number of solutions. Do you think that this is useful? If so, I will do a PR. Thanks.

track changes

A changelog needs to be maintained. CHANGES.md sounds good.

Setup from source

Hi,
I'm using python 3.5 and I try to setup pyHarmonySearch from source by running python setup.py install, But I get the following error:

TypeError: chown() missing 1 required positional argument: 'numeric_owner'

How can I resolve the error? Is it maybe because I use python 3.5 and it's not compatible with the setup process from source?

implement Mahdavi's improved harmony search

Mahdavi et al. suggested an improved harmony search that dynamically changes PAR and MPAP. This is a pretty easy modification. The suggestion comes from the following paper:

M. Mahdavi, M. Fesanghary, and E. Damangir, "An improved harmony search algorithm for solving optimization problems", Applied Mathematics and Computation, vol. 188, no. 2, pp. 1567-1579, May 2007.

make more Pythonic

The gist should be something like this:

from pyharmonysearch import HarmonySearch

hs = HarmonySearch(parameters)
solution_vector, solution = hs.run()

put in PyPI

Once issue #2 is fixed, this can be put in PyPI. This will allow the following:

pip install pyHarmonySearch

Provide initial position

Hi @gfairchild,

I would like to provide HS an initial position. The present implementation does not provide such an option. I am thinking to modify the run() function to take an initial position. I am thinking to provide it a list of lists (the initial positions, one for each individual), and modify self.initialize(). Any suggestions would be much appreciated.

Thank you very much.

Add unit tests

This project does not currently have unit tests, but it really should. Travis CI should be used to automate testing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.