Coder Social home page Coder Social logo

pscopf's Introduction

PSCOPF

All the following commands are executed in the julia REPL after launching it at the project's root directory with the project environment activated, which should set up all required packages. So, to start, you need to execute :

julia --project=.

Build Docs

To build the documentation. Run :

include("docs/make.jl")

The documentation will be built at docs/build and can be viewed by opening the file docs/build/index.html in a web browser.

Launch Tests

Enter package mode by pressing "]", then, launch :

test

To return to julia mode, simply press backspace (as if you were deleting the "]" you pressed).

Generate a network instance

the file main_generate_instance.jl can be used for this purpose. It will create a PSCOPF instance using the julia API. Then, the instance will be written to data/2buses_small_usecase/generate_instance, by default.

It can be launched in the julia REPL using :

include("src_mains/main_generate_instance.jl")

You can change the functions create_network or create_init_state to modify the instance.

Generate Uncertainties

The instance generated in the previous section is not enough to launch PSCOPF. PSCOPF needs information about the injecions uncertainties. Therefore, the need for the pscopf_uncertainties.txt file.

the file main_generate_uncertainties.jl reads a description of the uncertainties from the file uncertainties_distribution.txt, as well as input data describing a network (like the ones generated by main_generate_instance.jl). By default, the input is read from data/2buses_small_usecase/.

Then, it writes a full PSCOPF instance to data/2buses_small_usecase/generate_uncertainties

Generate a PTDF

A julia module separate from PSCOPF, is implemented in src/PTDF.jl. The script main_ptdf.jl allows to compute a ptdf matrix using this module. It reads a network description (different from that of PSCOPF). It then, outputs a ptdf matrix file compatible with PSCOPF's input.

The directory data/ptdf contains input files, providing a sample for main_ptdf.jl's input format.

pscopf's People

Contributors

azized avatar klorel avatar payementcha avatar eleonore-kaplan avatar adrienmarechal avatar fredbvn 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.