GithubHelp home page GithubHelp logo

Comments (3)

rb004f avatar rb004f commented on June 10, 2024

Good question. I have generally sent back what the model assumes about those variables. So, for the DC model I would send back voltage = 1 and reactive power = 0. Not sure what that should mean for SOC... I think it would be safe to send back nothing?

from powermodels.jl.

ccoffrin avatar ccoffrin commented on June 10, 2024

The convention I have been using thus far is that within a problem domain (say OPF), the there are no optional data fields in the output format. In the case of OPF all outputs must define a value for v, theta, p, and q. The benefit is that codes that process these outputs don't need to know anything about the underlying model and don't need to do a lot of key-existence checking.

Given that values are not optional, the general rule of thumb has been that if a model does not represent that particular data, the value is NaN ("undefined" would be better, but NaN is all we got...). In the DC OPF case, all of the q values NaN. The v values in DC OPF are a notable exception, the way I see v is that it is implicitly 1.0, and simply not represented in the formulation as a variable. So in this case, we output 1.0 instead of NaN.

So now moving on to the relaxations, which do not have an explicit theta variable (e.g. SDP, SOC, DistFlow, ...), the key question is, is their value of theta "undefined" (i.e. NaN), or one of these implicitly special cases, like a voltage in the DC.

My current inclination is that theta is NaN in these models. The reason is, if you try to re-derive the line flows with theta = 0 at all buses, the result would be incorrect. And due to the "virtual phase shifter" property, on cyclic networks there is rarely an assignment of theta that is consistent with the values of the voltage variables in these models.

from powermodels.jl.

ccoffrin avatar ccoffrin commented on June 10, 2024

Has been addressed by new solution reporting convention in PowerModels v0.15 and and solution post-processor feature.

from powermodels.jl.

Related Issues (20)

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.