Comments (4)
@michel2323 , @frapac : feel free to add/modify.
from exapf.jl.
Thanks for opening this issue! I think more about it today. Yesterday, we discussed about implementing the solve
function as:
function solve(pf::PF, u::AbstractVector, x0::AbstractVector)
...
end
with PF
a power flow object storing the data of the problem, u
the current decision variables, and x0
an (optional) initial guess.
The more I think about it, the more I believe that the function solve
should compute a feasible state variable x
(depending on the current u
), but also the adjoint w.t.r. u
(which is equivalent to the reduced gradient we discussed about).
A nice way to implement this would be to add a dependence to ChainRulesCore.jl, and add a function frule
returning a solution x
and the corresponding sensitivity ∂X
:
function frule((Δself, Δargs...), ::typeof(foo), args...; kwargs...)
...
return x, ∂X
end
from exapf.jl.
@frapac I like your idea, although I am not familiar with ChainRulesCore.jl.
I do have once concern. The solution of g(x, u)
, which is our solve
, could be replaced by a method that does not require the computation of the Jacobian matrices. In particular, I wanted to explore in the future the use of Padé approximants. In this case I was wondering if we should require solve
to compute the adjoints.
from exapf.jl.
Refactoring is complete.
from exapf.jl.
Related Issues (20)
- Unable to run code in the Quick Start HOT 3
- Lack of community guidelines HOT 1
- Store factorization in LinearSolver.DirectSolver HOT 1
- Release 0.5.0
- TagBot trigger issue HOT 14
- Time to first power flow HOT 1
- Add support to single precision
- Move the optimization evaluators in a separate package HOT 1
- ExaPF 0.6 HOT 1
- Power flow solver does not match MATPOWER when phase shift is nonzero HOT 1
- Improve code coverage in ExaPF
- Fix evaluation of `voltage_magnitude_constraints` on GPU HOT 1
- Line flow's adjoint is slightly off HOT 2
- Wrap UMFPACK in ExaPF.LinearSolvers HOT 1
- Wrap KLU in ExaPF HOT 1
- FiniteDiff.jl update broke the tests on the GPU
- Broken GPU example HOT 10
- Minor Release 0.9.2 HOT 1
- Release 0.10 HOT 4
- Switch default linear solvers and remove some
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exapf.jl.