Skip to main content

Package for Helping Swarm Intelligence Modeling

Project description

RMK SWARM

RMK Swarm is a python package containing tools and functions to make your implementation of Swarm Intelligence Method easier.

Installation and updating

Use the package manager pip to install RMK Swarm like below. Rerun this command to check for and install updates .

pip install git+https://github.com/riksameidy/rmk_swarm

Usage

Features:

  • swarmtools.inisialisasiPopulasi --> generator to genarate a swarm population consist of n individuals
  • swarmtools.evaluate_populasi --> function to evaluate given objective function for each individual in a population

Demo of some of the features:

import rmk_swarm
from rmk_swarm import swarmtools

# The domain
rn = [ [0,1] , [2,2] , [1,10]  ]

# Objective function
def f(X):
	return X[0] + X[1] + X[2]

# Parameters
n_populasi = 10    # number of individuals in Population

populasi = swarmtools.inisialisasiPopulasi(n_populasi , rn )
populasi = swarmtools.evaluate_populasi(populasi,f)

print( populasi )

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rmk_swarm-0.0.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page