Code Monkey home page Code Monkey logo

comp0124_cw2's Introduction

COMP0124_CW2

Project Overview

This project explores the dynamics of a competitive environment where multiple agents with different strategies compete to allocate tasks of varying difficulty levels. It is designed to study how different agent strategies affect their rewards and overall performance in a competitive setting. The agent strategies implemented are Random, Adaptive, Deep Q-Network (DQN), and Proximal Policy Optimization (PPO).

Installation

Before running the project, ensure you have Python and pip installed on your system.

  1. Clone the repository:
    git clone https://github.com/mchen2001/COMP0124_cw2.git
    
  2. Navigate to the project directory:
     cd COMP0124_cw2
    
  3. Install the dependencies:
     pip install -r requirements.txt
    

Usage

Execute the main.py script to start the simulation:

This will simulate a competitive game environment where agents interact based on their unique strategies and learn over time to improve their task allocation and reward maximization.

Project Structure

agent.py: Defines the agents with their strategies and learning mechanisms.

env.py: Contains the environment setup where agents perform and interact.

game.py: Implements the game logic, task definitions, and their management.

main.py: The entry point of the program to run the simulations.

train.py: Script for training the DQN and PPO agents using the simulation data.

utils.py: Helper functions and utilities used across the project.

report/save_model: Directory where trained models are saved for later use or evaluation.

Features

Strategic Agents: Study and compare the behavior of different types of agents in a shared environment.

Environment Simulation: A well-defined task environment that simulates competition among agents.

Reinforcement Learning: Implementation of DQN and PPO agents, along with their training procedures.

Performance Evaluation: Analysis of how different strategies affect the rewards and task allocation efficiency.

comp0124_cw2's People

Contributors

mchen2001 avatar gaorenhao avatar

Watchers

 avatar

Forkers

gaorenhao

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.