lanl / pyharmonysearch Goto Github PK
View Code? Open in Web Editor NEWpyHarmonySearch is a pure Python implementation of the harmony search (HS) global optimization algorithm.
License: BSD 3-Clause "New" or "Revised" License
pyHarmonySearch is a pure Python implementation of the harmony search (HS) global optimization algorithm.
License: BSD 3-Clause "New" or "Revised" License
Switch to setuptools from distutils. Use ez_setup.py to simplify.
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.
A changelog needs to be maintained. CHANGES.md sounds good.
I got a harmony_histories contain many generation, but they turn out to be with the same HMS. I considered it might be the last generation.
The code:
I think this part might need a deepcopy?
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?
Hi,
Using pip installed pyHarmonySearch, encountered
File "/usr/local/lib/python3.7/site-packages/pyharmonysearch/harmony_search.py", line 120
self._initialize(initial_harmonies)
^
TabError: inconsistent use of tabs and spaces in indentation
I recommend 867,5309.
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.
As in #16, but in line 188 of harmony_search.py. Is there missing a copy.deepcopy(self._harmony_memory)
? I haven't tried the code out yet, but I feel the gen-0 history will be the same as that of the last generation.
The gist should be something like this:
from pyharmonysearch import HarmonySearch
hs = HarmonySearch(parameters)
solution_vector, solution = hs.run()
Once issue #2 is fixed, this can be put in PyPI. This will allow the following:
pip install pyHarmonySearch
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.
ObjectiveFunctionInterface should be described in detail via a more official form of documentation than just code documentation. Maybe a docs folder should be created and inside should go interface.md or something.
This project does not currently have unit tests, but it really should. Travis CI should be used to automate testing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.