-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update formatting code * rename file * add new files * run formatter * update PowerNetwork * add missing include * first test * added methods for solving the power flow problem with full PTDF, and with ABA and BA matrices * formatter * test and methods updated * updated to avoid allocations * tested funcions (temporary) * tried also @threads for case 2k buses * implement power flow data correctly * add common methods * move code * update powerflow data * api update for powerflow data * update testing code * add new dc powerflow type * add more dependencies * fix to tturbo usage * clean up dc powerflow * add dc powerflow testing * add some fixes * added bus angle evaluation - non parallel * found bugs in look up tuple: not the same accross BA and ABA (to be finished) * problem found, keep comments for now * add bug fixes * WIP matrix vector multiplication * use zeros instead of undefs to initialize * fix mult implementation * use appropriate methods for multiplication * set angles to 0.0 * remove unused methods * formatter * split functions for dcpower flow * some changes to the mult operations * correction to pfdata make function * corrected and tested new functions tests pending, 70k case still slow * updated PTDF case testing, initialized Virtual PTDF * multiplication methods selected, tests prepeared but partially passed * add misc changes * bump power network matrices * changed interface for nlsolve_ac_powerflow to solve_powerflow * adding specific function for exporting dc results * updated write_results for dc case * fixed test for PTDF and DC PowreFlow * fixed sort! function * fixed test for ABA and PTDF version of DC power flows * crated and tested functions fo vPTDF case * formetter * removing temp lines * test fixed * formatter * update formatter code --------- Co-authored-by: Jose Daniel Lara <[email protected]>
- Loading branch information
1 parent
8af179c
commit a045367
Showing
20 changed files
with
1,011 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Pkg | ||
Pkg.activate(@__DIR__) | ||
Pkg.instantiate() | ||
Pkg.update() | ||
|
||
using JuliaFormatter | ||
|
||
main_paths = ["."] | ||
for main_path in main_paths | ||
for (root, dir, files) in walkdir(main_path) | ||
for f in files | ||
@show file_path = abspath(root, f) | ||
!occursin(".jl", f) && continue | ||
format(file_path; | ||
whitespace_ops_in_indices = true, | ||
remove_extra_newlines = true, | ||
verbose = true, | ||
always_for_in = true, | ||
whitespace_typedefs = true, | ||
conditional_to_if = true, | ||
join_lines_based_on_source = true, | ||
separate_kwargs_with_semicolon = true, | ||
|
||
# always_use_return = true. # Disabled since it throws a lot of false positives | ||
) | ||
end | ||
end | ||
end |
Oops, something went wrong.