A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ugochirico/Java-Ant-Colony-System-Framework below:

ugochirico/Java-Ant-Colony-System-Framework: An implementation of Ant Colony System in Java

Java Ant-Colony-System-Framework (JACSF)

An implementation of Ant Colony System in Java

An Ant Colony System consists of a set of cooperating agents, called ants, that cooperate to find a good solution for optimization problems on graphs similar to the Travel Salesman Problem. (see Dorigo, M., Gambardella, L.M., “Ant Colony System: A Cooperative Learning Approach to the Travel Salesman Problem”, TR/IRIDIA/1996-5, Université Libre de Bruxelle) Each single ant reflects a very trivial behavior: it simply goes from a node to another across an arc, but when all ants cooperate, like actual ants do in a real colony, the whole system reveals an intelligent behavior, as much as it is able to find a good solution for the TSP.

The framework is composed by three classes:

JACSF applied on Traveling Salesman Problem

To apply JACSF to the Traveling Salesman Problem I took the instance of ACS that Dorigo used in his work mentioned above and I implemented it using JACSF.

I designed two concrete classes Ant4TSP and AntColony4TSP, derived respectively from the classes Ant and AntColony, which implement the transition and updating rules described above.

JACSF applied to Multicasting Problem in a network (Stainer Problem on a Network)

Multicasting in a network is the targeting of a single data packet to a selected set of receivers in the network. It is in opposition to traditional communication modes unicast and broadcast that are, respectively, one-to-one and one-to-all communications. Considering the needs of efficiency, expressed in term of low delay during transmissions and limited bandwidth, solving the Multicasting Problem means generating a tree of nodes from the sender to the given set of clients which has the minimal cost in term of time and bandwidth. Because the Multicasting Problem in networks can be seen as an instance of Steiner Problem on a network, I used JACSF to solve it.

I designed two classes Ant4SP and AntColony4SP, derived respectively from the Ant4TSP and AntColony4TSP. I opted to derive from the classes designed for TSP because there are very few changes to do respect to the base classes. The class AntColony4SP differs from AntColony4TSP in the method globalUpdatingRule and in the method createAnts in which it creates the ants. The class Ant4TSP differs from Ant4TSP only in the method end because the End of Activity Rule must return true when all nodes has been covered


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4