This repository contains an implementation of the AgE3-compatible solver for optimizing Carbon Footprint. Technology stack: Java, Spring framework.
You need to have the following tools installed and configured:
- Java 1.8
- Gradle
This repository is compatible with the 0.5
version of the AgE3 project, which is
not deployed yet. In order to run this repository, follow these steps:
- Clone the latest version of the AgE3 develop branch.
- Enter the main directory of cloned repository.
- Navigate to the
settings.gradle
file and append the following line:Then close the text editor.include 'AgE3-CarbonFootprint'
- Add this repository as a submodule and navigate to it:
git submodule add https://github.com/bgrochal/AgE3-CarbonFootprint.git cd AgE3-CarbonFootprint
- Build and run the code included in this repository by executing:
gradle node -PappArgs="['pl/edu/agh/footprint/age/carbon-footprint-config.xml,pl/edu/agh/footprint/age/carbon-footprint-config.properties']"
There is a python3
script included in the src/main/resources/visualisation
directory, which analyses the log files
produced by the Carbon Footprint solver. In order to run this script, please install all dependencies by typing:
pip3 install -r requirements.txt
in the directory mentioned above, and then run the script as follows:
python3 visualisation.py