Code Monkey home page Code Monkey logo

dac_control's Introduction

Wind-powered direct air capture modelling and control

Project carried out as a visiting doctoral student with the Sustainable Systems Design Lab at the University of Victoria, Canada, to apply machine learning for the optimisation of a offshore direct air capture (DAC) system. See the Wiki for modelling, control algorithms and results.

First, create a conda environment and install the required packages:

conda create -n dac_control
conda activate dac_control
pip install -r requirements.txt

Weights and Biases is used to track the experiments. After signing up for a free account, run the following:

wandb login
wandb online

Hydra is used to manage the experiment configuration using config files. To run an experiment with the default configuration (as stated in main.yaml), run:

python system_simulation.py

The experiment configurations can be changed by specifying the file name or overriden directly, for example:

python system_simulation.py dac.num_units=6 controller=cycling kinetics=sizing_nums_dacs

To specify the cross entropy method (CEM) model predictive controller (MPC), a dynamics model must be specified in the command line, for example:

python system_simulation.py controller=cem +dynamics_model=constant_wind

A seperate script can be used to train and save a reinforcement learning agent using Stable-Baselines3.

python train_rl_agent.py controller=rl_ac

After training the agent, the learnt policy can be evaluated by running:

python system_simulation.py controller=rl_ac +controller.name='W&B_NAME'

dac_control's People

Contributors

sradicwebster 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.