Giter Site home page Giter Site logo

scopf-approx's Introduction

SCOPF surrogate

  1. generate the scenario data
  2. evaluate the solutions to generate the training data for the approximation network

The evaluation of the solutions is done by the evaluate.py and data.py script. The script is based on https://github.com/GOCompetition/Evaluation.git

Repository structure

- src
    - generate_data.py  \\generate the scenario data
    - random_load_profile.py    \\generate the random load profile
    - generate_data_parallel.py and scenario_operations.py  \\used to generate the scenario data in parallel
    - get_stage2_pen.py     \\gather the second stage penalty from each detail file, and splitting the data for training the approximation neural network.
    - generate_result.py    \\generate solving time and solution results into the the ./result folder
- model
    folder to store the trained model weights
- result    \\store the result csv files
    - result.ipynb and time_result.ipynb    \\generate the result table and plots
- load_model.py     \\load the trained model and write the weights of the neural network in to txt files in the model folder
- test.py, test.sh      \\the function to call the evalutation.run method to evaluate the solutions
- examples
    - case2 # an example datafile 

Generate scenarios

python generate_data.py

python random_load_profile.py

Get the penalization for collected base case solutions

bash test.sh
python get_stage2_pen.py

Train the model

python approx_model.py

scopf-approx's People

Contributors

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