Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental Y-Bus admittance matrix update #444

Merged
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
f551e8b
Incremental updates with decrement functionality, implemented without…
Jerry-Jinfeng-Guo Dec 5, 2023
5a96194
fixed minor sign error with decrement
Jerry-Jinfeng-Guo Dec 5, 2023
74f5d82
Fixed type cast complaints on linux/macos compilers; added logic to p…
Jerry-Jinfeng-Guo Dec 6, 2023
ada5e76
Added function interface in the `update.hpp`; next to add `std::view`…
Jerry-Jinfeng-Guo Dec 6, 2023
17548e5
Removed code 3 smells
Jerry-Jinfeng-Guo Dec 6, 2023
c5bf91d
Minor fix: clang tidy doesn't like copy constructor
Jerry-Jinfeng-Guo Dec 8, 2023
04c7796
Updated several duplicated code; better naming of variable (to avoid …
Jerry-Jinfeng-Guo Dec 18, 2023
aa7c7a5
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Dec 18, 2023
e1abfef
fix clang-tidy warning
Jerry-Jinfeng-Guo Dec 18, 2023
28c21d3
Re-worked function structures
Jerry-Jinfeng-Guo Dec 19, 2023
a67f779
range copy fix
Jerry-Jinfeng-Guo Dec 19, 2023
d8eff9b
clang-tidy
Jerry-Jinfeng-Guo Dec 19, 2023
e0c57a7
Test case work in progress
Jerry-Jinfeng-Guo Dec 19, 2023
62e8678
Test case on the `y_bus` itself
Jerry-Jinfeng-Guo Dec 20, 2023
7ecb109
Fixed an index error: admittance matrix entry <-> parameter map
Jerry-Jinfeng-Guo Dec 20, 2023
a817271
clang tidy
Jerry-Jinfeng-Guo Dec 21, 2023
82d02c7
Reverted to `boost` for `iota`; fixed couple other things like functi…
Jerry-Jinfeng-Guo Dec 21, 2023
3581ef8
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Dec 21, 2023
83e7ce8
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Dec 22, 2023
f968f8a
Fully boost; simplified a couple duplication in lambda; lowered UPPER…
Jerry-Jinfeng-Guo Dec 22, 2023
b2a89d3
[WIP] Draft integration: changed from delta based increment to whole …
Jerry-Jinfeng-Guo Jan 2, 2024
6e8392f
Integration. Increment\decrement\delta-based update.
Jerry-Jinfeng-Guo Jan 3, 2024
a51ca64
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 4, 2024
a010452
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 4, 2024
3067db8
Refactored the code; no more delta based in-/de-crements; swap based …
Jerry-Jinfeng-Guo Jan 5, 2024
fa69783
Brief code cleaning-up
Jerry-Jinfeng-Guo Jan 8, 2024
64dc9ac
Retouched the test case
Jerry-Jinfeng-Guo Jan 8, 2024
7ad1a67
Minor code smell removal
Jerry-Jinfeng-Guo Jan 8, 2024
78ae4b5
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 10, 2024
2bcc366
Manually merge conflict fix; namespace math_model_impl -> math_solver
Jerry-Jinfeng-Guo Jan 10, 2024
c9fd978
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Jan 11, 2024
a4eece8
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 16, 2024
2a2ff1a
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 16, 2024
59a8a7d
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Jan 17, 2024
409ea24
Tentative implementation integrating progressive `update_y_bus` with …
Jerry-Jinfeng-Guo Jan 19, 2024
5448fb3
Changes not included due to merger from master
Jerry-Jinfeng-Guo Jan 22, 2024
7231ecc
Suppress some compiler warnings.
Jerry-Jinfeng-Guo Jan 22, 2024
da1330a
minor fix
Jerry-Jinfeng-Guo Jan 22, 2024
d7b3acb
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Jan 23, 2024
04f8ed3
Fix and cleaned up the implementation.
Jerry-Jinfeng-Guo Jan 23, 2024
9e69d74
Code cleaning up. `set` to `vector` correction.
Jerry-Jinfeng-Guo Jan 24, 2024
382c4dc
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 24, 2024
bb0d92d
Changes processing review comments
Jerry-Jinfeng-Guo Jan 24, 2024
1f3199e
Minor improvement. string lookup avoided.
Jerry-Jinfeng-Guo Jan 25, 2024
ab3b523
Removed decrement logic from `y_bus`
Jerry-Jinfeng-Guo Jan 26, 2024
5d92cd6
Processed review comments.
Jerry-Jinfeng-Guo Jan 26, 2024
25f0392
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 26, 2024
5c5dd69
Review comments processing.
Jerry-Jinfeng-Guo Jan 26, 2024
8153eb6
Added `sequence_index_map` accumulation logic for repeated `update` call
Jerry-Jinfeng-Guo Jan 26, 2024
ab20979
Minor update main_model.hpp
Jerry-Jinfeng-Guo Jan 26, 2024
0a94100
Update main_model.hpp
Jerry-Jinfeng-Guo Jan 26, 2024
274a5a1
Update the `sequence_idx_map` accumulation logic to simply just accum…
Jerry-Jinfeng-Guo Jan 29, 2024
63b1e8a
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Jan 29, 2024
68f41a7
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Jan 30, 2024
19346c1
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
mgovers Jan 30, 2024
b449278
fix asym/sym switching edge case
mgovers Feb 1, 2024
1f3f936
Merge branch 'feature/DGC-1950-Incrementally-update-topology-paramete…
mgovers Feb 1, 2024
f6726d6
remove unused functions
mgovers Feb 1, 2024
616b6df
sonar cloud
mgovers Feb 1, 2024
97750dd
Sonar cloud, attempt 2
Jerry-Jinfeng-Guo Feb 1, 2024
8a40ef1
Sonar cloud, attempt 3
Jerry-Jinfeng-Guo Feb 1, 2024
19c95ee
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Feb 2, 2024
9179778
Added test case for the new sym/asym alternating compute mode logic i…
Jerry-Jinfeng-Guo Feb 2, 2024
e09021d
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Feb 2, 2024
5885897
Test case reworked; cleaned unneeded headers
Jerry-Jinfeng-Guo Feb 2, 2024
dc270b3
improve test case
mgovers Feb 5, 2024
57d3487
fix sonar cloud code smells
mgovers Feb 5, 2024
34f4050
fix more code smells
mgovers Feb 5, 2024
c67781d
Merge branch 'main' into feature/DGC-1950-Incrementally-update-topolo…
Jerry-Jinfeng-Guo Feb 5, 2024
3bb8ac0
params changed callback from ybus to math solver
mgovers Feb 5, 2024
f1161cc
clang-tidy pleasing
Jerry-Jinfeng-Guo Feb 5, 2024
bf404f6
resolve code smells
mgovers Feb 5, 2024
5f211c6
copy of admittance
mgovers Feb 5, 2024
8dbf135
make ybus owner of admittance data
mgovers Feb 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,11 @@ template <bool sym> class YBus {
uint64_t register_parameters_changed_callback(ParamChangedCallback callback) {
TonyXiang8787 marked this conversation as resolved.
Show resolved Hide resolved
static uint64_t num_added = 0;

auto const new_key = num_added++;
auto const new_key = num_added;
++num_added;

assert(!parameters_changed_callbacks_.contains(new_key));
parameters_changed_callbacks_.insert(std::make_pair(new_key, std::move(callback)));
parameters_changed_callbacks_.emplace_hint(parameters_changed_callbacks_.cend(), new_key, std::move(callback));
return new_key;
}

Expand Down
Loading