Coder Social home page Coder Social logo

hhmarl_2d's Introduction

HHMARL

Heterogeneous Hierarchical Multi-Agent Reinforcement Learning for Air Combat Maneuvering, the implementation of the method proposed in this paper.

Requiered Packages

  • ray["rllib"] == 2.4.0
  • torch >= 2.0.0
  • numpy == 1.24.3
  • gymnasium == 0.26.3
  • tensorboard == 2.13.0
  • pycairo == 1.23.0
  • cartopy >= 0.21.0
  • geographiclib == 2.0
  • tqdm

Training

Run train_hetero.py for heterogeneous agents training and train_hier.py to train the super-policy (commander). The low-level policies must be pre-trained and stored in order to start training of the commander policy.

config.py contain the corresponding arguments to set:

  • agent_mode is either "fight" or "escape"
  • level from 1 to 5
  • restore either True or False, to restore training
  • log_name to define the experiment name
  • gpu either 0 or 1, to use gpu or not
  • n_agents and n_opponents, to specify the number of agents and opponents
  • eval either True or False, for having evaluations stored as images
  • render either True or False, to visualize the current combat scenario. It stores iteratively the current combat situation as .png file

At this stage, low-level policy training is configured for 2vs2 only. High-level commander policy accepts any combat configuration.

hhmarl_2d's People

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.