Open hejun0524 opened 1 year ago
The commit replace for loops with matrices
changed the solution.jl
by calculating the bus injection matrix of size $B \times T$ first, and then using the ISF matrix (size $L \times (B-1)$ ) to get the line flow matrix. Using the matrix slicing we can get all non-slack buses' net injection.
Then the code constructs the dictionary by directly assigning each row to the corresponding line/interface name. I have manually compared the results by running the old code with nested for-loops and this updated matrix version, and the results were the same.
read.jl
,structs.jl
,build.jl
add interfacesinterface.jl
adds constraints & objective to the modelline.jl
,sensitivity.jl
add the interface ISFslice.jl
adds interface slicingsolution.jl
reports transmission line flows and interface flows