Git Product home page Git Product logo

bilevel-optimization-in-coordination-game's Introduction

Bi-level Actor-Critic for Multi-agent Coordination

This is the code for implementing the MADDPG-based algorithms (Bi-AC, MADDPG) presented in the paper: Bi-level Actor-Critic for Multi-agent Coordination.

It is base on the Multi-Agent Reinforcement Learning Framework: malib.

It is configured to be run in conjunction with a slightly changed environment, original from the highway-env.

Installation

  • To install, you need to follow the same routine to install malib.

  • Main dependencies: Python (3.6), OpenAI gym (0.14.0), tensorflow (2.0.0), numpy (1.17.0), matplotlib, pickle.

Quick Start

bilevel_pg

This is the menu for the matrix game setting shown in the paper. To run the experiment in this menu, run:

cd bilevel_pg/experiments
python run_trainer.py

bilevel_pg_highway_1x1

This is the menu for the highway-env setting shown in the paper. To run the experiment in this menu, run:

cd bilevel_pg_highway_1x1/bilevel_pg

Thus, you enter the menu where all the training code are given, you may any of the algorithms given. For example, for running Bi-AC:

python run_trainer_highway.py

bully_q

This is the menu where we test the Bi-Q method without neural netowrk. To run the experiment for Bi-Q, run:

cd bully_q
python bilevelq_vs_table_q.py

Paper citation

If you used this code for your experiments or found it helpful, consider citing the following paper:

@article{zhang2019bi,
  title={Bi-level Actor-Critic for Multi-agent Coordination},
  author={Zhang, Haifeng and Chen, Weizhe and Huang, Zeren and Li, Minne and Yang, Yaodong and Zhang, Weinan and Wang, Jun},
  journal={arXiv preprint arXiv:1909.03510},
  year={2019}
}

bilevel-optimization-in-coordination-game's People

Contributors

laonahongchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bilevel-optimization-in-coordination-game's Issues

Is highway_env used?

run_trainer_highway_bilevel.py seems to be using OpenAI gym Merge instead of the highway_env

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.