Coder Social home page Coder Social logo

mmprvoltagecontrolsimulation's Introduction

MATLAB mmPr simulation in Voltage control scenario

This framework simulates a modified version of the DiSC tool developed by Rasmus P. This is modified to support better network simulations, and the possibility for the controller/asset to run slower than the sampling time.

Installing:

To install the framework, clone or download the git repository to a PC with MATLAB installed. The framework requires some consumption data which can be found as a zip-file via google drive: https://drive.google.com/open?id=0B1d_5ZAxrCWacnIxc0ppU1hXWlk In the zip-file the data is located in folders corresponding to where they must be placed in the repository. Further more the folders required are already included in the repository, and just needs to be populated. Therefore, the files located in the data folder, must be put in the data folder in the root of this repository. Similarly, the files located in DiSC/matlab/data folder must be placed in the DiSC/matlab/data folder of this repository.

How to use:

The file RunAll.m runs through 3 nested for loops. The first one determines the access scheme. 1 means the reactive scheme, 2 means the proactive scheme. The second loop determines the seed for the simulation. The final loop determines the mean network delay as a multiple of the sampling time (Ts, default 5s), this delay will be applied in both upstream and downstream. Based on the parameters of these 3 loops, the script determines a file name in which to store data generated by the simulation. If a file by this name exists in the results folder, it will skip the simulation, and continue to the next parameter value in the loops.

The RunAll.m script is set to only create data using the reactive scheme, which is why the script RunAll0.m is the exact same, except that this runs the proactive scheme. The results folder is currently populated with empty data files as place holders for all the simulations that have already been done. The actual data should not be uploaded to github, but handled via some other service.

The makeFiles.m script can be used to generate empty data files, if new placeholders are needed.

The ShowResults.m script can be used to handle the data, and generate plots for visualisation.

mmprvoltagecontrolsimulation's People

Contributors

fusionfoxy avatar

Stargazers

 avatar Young avatar wy 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.