Giter Site home page Giter Site logo

metaoptopf.jl's Introduction

This package defines the necessary functions to run the experiments in https://arxiv.org/abs/1911.06784.

Full details can be seen in the paper, but it has these following conceptual components:

  • binding.jl: Functions for adding and removing from a JuMP certain constraints (PowerModels and JuMP):
  • model.jl: Neural network training blocks (Flux). Setting and getting neural network weights for interaction with Particle Swarm Optimization
  • powermodels.jl: Setting and getting grid parameters from a powermodels OPF formulation.
  • evaluate.jl: Helper functions used to evaluate the computational cost of running OPF, such as timing values.

The main experiments presented in the paper are executed through ./scripts/experiment.jl. This in turn can be launched with launch.sh. These are the conceptual blocks in experiment.jl in the _main function:

  • Take a model and train it 'classically' (i.e. with gradient descent). This is in the block while !do_stop(epochs, l_val). Essentially training the NN with early stopping with update!(opt, ps, gs)
  • Defining a metaloss function: function _metaloss(...)
  • Following this we then optimize, from this initialization, subject to the metaloss: res = optimize(_metaloss, GoCompetition.get_w(model), ParticleSwarm.... Here for example _metaloss is a function that returns the metaloss, and is passed into the optimizer. get_w gets the weights of the NN, and ParticleSwarm refers to the optimizer, etc.

Branches:

  • master: DC-OPF
  • ac-opf: AC-OPF

metaoptopf.jl's People

Contributors

alexrobson avatar molet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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