Skip to content

sharyalZ/Adaptive-Energy-Management-for-Smart-Grids-ADEMIS-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adaptive-Energy-Management-in-Smart-Grids(ADEMIS)

ADaptive Energy Management in Smart Grids(ADEMIS) is an active smart numerical platform, which can handle issues arising in the grid. The system is developed to deploy the multi-agent systems in the field of smart grids. Current version of the system handles grid issues such as line congestion, voltage limits violations, and energy mismatch of the balance responsible party(BRP). It is based on AMAK platform, which is based in JAVA and has been developed in Eclipse. For the power systems calculations, PowerFactory is used. A communication link has been set-up using Pyhton. In the future, other open source power calculations tools' compatibility will be tested.

Required Softwares and Packages

Software Package Version
Eclipse 2020-09
Python 3.6.0(32 bit)
PowerFactory Latest
Java 1.8.0
NumPy Latest
pywin32 Latest

ADEMIS Installation Procedure

To start using the ADEMIS platform on your personal computer, follow the follwing steps in order. All the required software packages can be downloaded by clicking on the links above. The procedure is divided into 2 steps. Step 1 is installing required software packages and step 2 is on how to set-up the project and start using it.

Step 1: Software Packages Installation

  1. Install Python v3.6.0(32-bit). To check if the installation was successful, open CMD and type python --version. Installed python version will be displayed. Capture

  2. Next, install NumPy and pywin32 on your computer. To do so open CMD again and type pip install numpy and then pip install pywin32 to install mentioned packages respectively. To verify installation pip show numpy and pip show pywin32 commands can be used as shown. Capture

  3. Next install Java runtime environment. It should be version 1.8.0(jdk8). After installtion verify its installation in cmd using java -version. Capture

  4. Install Eclipse IDE for Java developers.

  5. Install PowerFactory and activate it using your license key.

Step 2: Project Set-up

  1. Download the complete project files by clicking on the Code button on the top, and selecting Dowload Zip option.

  1. Extract the .zip file. It contains the ADEMIS project folder and PowerFactory design projects to perform required power analysis.

  2. Open the PowerFactory project on which multi-agent simulation is desired to be performed using ADEMIS.

  3. After the project is activated in PowerFactory(run PowerFactory as administrator), open the Data Manager tab. Navigate to %User Name% -> %Projet Name% -> Study Cases -> Study Case. In the Study Case folder, two sub-folders will be present named Results and Scripts. This contains the details of output files of PowerFactory simulations. A valid path to store these files has to be added in all files present inside Results and Scripts folders. To add the path, right click on the file and select Edit. Enter the desired path in the input field with tag the File Name and press Execute. Repeat this step to add this path to all the files in the twoo mentioned sub-folders. (Note: User can select any valid path in the computer; all input fields with tag File Name should be filled with this path in both Results and Scripts folders' files). Capture

  4. Close PowerFactory. Navigate to the folder where PowerFactory is installed(usually inside C drive program files). In the folder look for the folder named python. Copy the path of this folder. Now open the unzipped folder and navigate to Workspace -> MAS_ADEMIS -> ademis. A python script named InterfaceJavaPowerFactory will be present. Open it in any editor. In line number 37, replace the existing path with the path of python folder you copied(dont' erase the "//3.6" at the end). Save the changes and close it. Capture

  5. Now start Eclipse IDE for Java developers. A window will appear to specify workspace path. Click on Browse and give this path as workspace path: Inside the unzipped project folder go insider the Workspace folder and press Select Folder and then finish this step by pressing Launch.

  6. Eclipse will start. A wrokspace should already be present with all the required folders as show below. If not, you can add the reauired project folders manually as well(Note: Make sure the naming is the same for all folders). Capture

  7. To verfiy compiler settings, right click on the first folder ademis and then select properties. A new properties window will open for this project folder. Go to Java Compiler menu and check the tickbox for Enable project specific settings and select 1.8 from the dropdown menu of Compiler compliance level. Press Apply button to save the changes. Repeat the same steps for every project folder(i.e. 'amak', 'gui', 'lx-plot', 'resultsgui' and 'test'). Capture

  8. Finally, the Java build paths have to be specified for each project folder. Right click in the first folder i.e. ademis, and select properties. Go to the Java Build Path menu. Clcik on the Projects tab. For this specific folder, amak and lx-plot should be present in there. If not you can add them by using Add button on the right. Press the Apply button and close this properties menu. Every project folder(i.e. 'amak', 'gui', 'lx-plot', 'resultsgui' and 'test') needs specific projects in the build path. A list of project folder with required build paths is given below. If these are not already present in the build path, they should be added.

    Project Folder Required Paths/Projects
    ademis amak, lx-plot
    amak -
    gui ademis, resultsgui
    lx-plot -
    resultsgui ademis, lx-plot
    test -

Capture

  1. Make sure that the path C:\Users\%username%\AppData\Local\Programs\Python\Python36-32\python exists for Python36-32 directory. Otherwise, you can find the path for this folder and paste it in the PowerFactoryCaller file, present inside ademis -> src -> Interface. Capture

  2. Re-build the complete workspace and press Run. ADEMIS is running and ready to use! Capture

In case of any query, feel free to contact at sharyal.zafar@ens-rennes.fr

About

ADEMIS Repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages