Giter VIP home page Giter VIP logo

forest's Introduction

๐ŸŒณForest implements a simple Forest Evolution Algorithm (FEA). The idea behind Forest is based on the seed dispersal mechanism employed by trees to colonise nearby and far away land areas. Seed dispersal is the movement or transport of seeds away from the parent tree. This implementation is a variant of the Invasive Weed Algorithm (see ref. โž€).

This module is not implemented with speed in mind but, instead, it is a straightforward implementation of the underlying algorithm. If you have any suggestions for speed/feature improvements, please let me know!

Intuition


In the biology of dispersal, a dispersal vector is an agent transporting seeds (or whatever dispersal units). Dispersal vectors may include biotic factors, such as animals, or abiotic factors, such as the wind or the ocean. Seeding - i.e. seed dispersal - can either be local - i.e. within a dispersal spread around the mother tree (exploitation phase) - or global, in which case, a dispersal vector transports a seed over a long distance away from the location of the mother tree in order to colonise new lands - i.e. exploration phase.

In nature, if a tree does not reproduce, its species becomes extinct. Thus, this leads to the requirement of a competitive exclusion in order to eliminate (not always) those trees that do not reproduce - i.e. potentially "bad" solutions. This is done to limit the maximum number of trees in the forest. Initially, fast reproduction of trees take place and all of them are given a chance to be part of the growing forest. The fitter trees reproduce more than the undesirable ones, however. An elimination mechanism is then activated when the population exceeds a sustainable number of trees within the forest land - i.e. search space.

Algorithm


The FEA model of Forest consists of four phases that are accomplished sequentially, namely

โžŠ An Initialisation Phase where the initial population is generated to cover the entire search space as much as possible by uniformly randomising individuals within the search space constrained by the prescribed lower and upper bounds.

โž‹ A Selection Phase (competitive exclusion) where trees with lower metric values might be eliminated from the forest. To do so, the trees are ranked and those with lower fitness values are removed to sustain a sustainable population of trees.

โžŒ A Reproduction Phase during which the trees will produce seeds based on their relative fitness. Seedlings - i.e. young plants - are created by randomly mutating the DNA of the mother trees. A linear increase in the number of seeds produced by the trees of the forest is considered from a maximum number of seeds for the tree with the lowest value to a minimum number of seeds for the tree with the highest fitness value - i.e. minimisation problem.

โž A Dispersal Phase where seeds are randomly distributed over the dimensional search space by random numbers drawn from either a normal distribution or a uniform distribution. For each seed, a coin toss decides whether a local or global seeding takes place to ensure constant exploration of the search space.

Citation


If you use this module in your projects (whatever those are for!), I would like to hear from you, I am curious! Of course, you do not have to, but you can drop me a line at: romain (dot) wuilbercq (at) gmail.com

Suggestion:

Wuilbercq, R., Forest Optimisation Python Library, 2017.

Reference(s)


โž€ A. R. Mehrabian, C. Lucas, "A novel numerical optimization algorithm inspired from weed colonization," Ecological Informatics, vol. 1, pp. 355-366, 2006

License


The MIT License (MIT)

Copyright (C) 2017 Romain Wuilbercq

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

forest's People

Contributors

rwuilbercq avatar

Stargazers

 avatar Dimitriy White avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

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.