Giter Site home page Giter Site logo

enriched-glv's Introduction

enriched generalized Lotka-Volterra equations

This code includes source and postprocessing code for the reduced and enriched GLV models. The parameters of the discrepancy model are calibrated using QUESO.

Dependencies: QUESO (https://github.com/libqueso/queso), Eigen

My Makefile is included for reference. A bin and build file should be created locally.

The steps to run the code are as follows:

python3 inputs/interaction-matrix.py
./bin/gen_data
rm -r outputData
./bin/glv_plus inputs/mhInput.inp

The first creates the interaction matrix $A$, the random vector $b$, and outputs the files info.txt and matrix.txt.

The second generates data based on the information given above.

The third removes existing 'outputData' directory (of course, alternatively you can just rename this to save results). This directory is created during the inverse problem. 'mhInput.inp' is an input file for QUESO.

The fourth runs the inverse problem according to the queso inputs in the mhInput.inp.

To plot the time series results:

cd postprocessing
./post_proc.sh
python3 compute-percents.py
python3 percent-time-series.py

You can also run

./bin/gen_data

to test the forward model alone.

Notes:
You can also run the above steps with a fixed test case by

test_run_data_and_ip.sh

To cite this code, you can use:

@misc{morrison2020glvcode,  
  doi = {10.5281/ZENODO.3986201},  
  url = {https://zenodo.org/record/3986201},  
  author = {Morrison, Rebecca E.},  
  title = {rebeccaem/enriched-glv: Initial release},  
  publisher = {Zenodo},  
  version = {0.1.0},   
  year = {2020}  
 }

enriched-glv's People

Contributors

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