Git Product home page Git Product logo

maaidd's Introduction

MAAIDD

Please check more details here

Document: GitBook

1. Introduce

This project focuses on analysing the effect of different Multi-agent dynamic systems and graphs.

1.1 Dynamic function

$$ \dot x_i(t)=f(x_i(t),t)- \alpha \sum_{j=1}^{N} l_{ij}x_j(t_k), t_k \le t < t_{k+1},k \in N, i=1,2, \cdots, N $$

1.2 States update

$$ \hat x_i^{t+1} = x_i^{t} + sampleTime * \dot x_i^{t} $$

1.3 Project skeleton

  • ๐Ÿ“ src: Source code of the project.
    • ๐Ÿ“ package
      • ๐Ÿ“ agent: single agent class
        • ๐Ÿ“„ agent.py
        • ๐Ÿ“„ model.py
        • ๐Ÿ“„ init.py
      • ๐Ÿ“ h: config file and logger file
        • ๐Ÿ“„ config.py
        • ๐Ÿ“„ logger.py
      • ๐Ÿ“ topology: topology class
        • ๐Ÿ“„ topology.py
        • ๐Ÿ“„ init.py
  • ๐Ÿ“ result: Data used or generated by the project.
    • ๐Ÿ“ exp_id: experiment id
      • ๐Ÿ“ data: Save generated data
      • ๐Ÿ“ log: Save log
      • ๐Ÿ“ topology: Save generated topology
  • ๐Ÿ“ draw: Tools for drawing generated data(result/exp_id/data/.gzip[.csv])
  • ๐Ÿ“„ LICENSE: Project's license file.
  • ๐Ÿ“„ requirements.txt: List of project dependencies.
  • ๐Ÿ“„ .gitignore: Gitignore file.
  • ๐Ÿ“„ README.md: README
  • ๐Ÿ“„ run.py: Entry of whole project

2. Usage

Strongly recommend the use Miniconda or conda

conda create --name=MAAIDD python=3.8
conda activate MAAIDD

2.1. Clone

git clone https://github.com/LosFurina/MAAIDD.git
cd ./MAAIDD

2.2. Install requirement

pip install -r ./requirement.txt

2.3. Run and save data

  • You do not need to add any parameters when running, all parameters have been set below

  • Please confirm you have changed the correct arguments at config.py which relates to the final data saving path

python run.py

3. Config file (valid)

All parameters have been set at src/package/h/config.py

Maybe later, we will deprecate .py as a config file, but moving some const hyperparameters to .yaml

Before running this project, you should change it following your project

3.1. parameters introduce

Variable Name Default Value Description
node_num 10 Number of nodes in the graph
sample_interval 0.01 Sampling interval
total_duration 20 Total sampling time (units: s)
spread_interval_time 0.4 Duration between control variable spread
alpha 1.5 Strength among different agents
is_random_graph True If set to False, node number must be 7
is_draw_process True Whether drawing track draft when running simulation
is_show_log True If True, print all log on the terminal; otherwise, print log to file

4. Issue

Please open the issue following the request

maaidd's People

Contributors

losfurina avatar

Stargazers

 avatar

Watchers

 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.