Skip to content

Commit 8c944a5

Browse files
committed
comment out more iteration diverge + short circuit on last node
Signed-off-by: Martijn Govers <[email protected]>
1 parent fdb8cdc commit 8c944a5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/benchmark_cpp/benchmark.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ int main(int /* argc */, char** /* argv */) {
359359
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
360360
.calculation_symmetry = symmetric,
361361
.calculation_method = iterative_linear});
362-
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
363-
.calculation_symmetry = asymmetric,
364-
.calculation_method = newton_raphson});
362+
// benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
363+
// .calculation_symmetry = asymmetric,
364+
// .calculation_method = newton_raphson});
365365
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
366366
.calculation_symmetry = asymmetric,
367367
.calculation_method = iterative_linear});
@@ -375,9 +375,9 @@ int main(int /* argc */, char** /* argv */) {
375375
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
376376
.calculation_symmetry = symmetric,
377377
.calculation_method = iterative_linear});
378-
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
379-
.calculation_symmetry = asymmetric,
380-
.calculation_method = newton_raphson});
378+
// benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
379+
// .calculation_symmetry = asymmetric,
380+
// .calculation_method = newton_raphson});
381381
benchmarker.run_benchmark(option, {.calculation_type = state_estimation,
382382
.calculation_symmetry = asymmetric,
383383
.calculation_method = iterative_linear});

tests/benchmark_cpp/fictional_grid_generator.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ class FictionalGridGenerator {
523523
}
524524

525525
void generate_sensors() {
526-
constexpr double voltage_tol = 0.01;
527-
constexpr double power_tol = 0.05;
526+
constexpr double voltage_tol = 0.1;
527+
constexpr double power_tol = 0.1;
528528

529529
// voltage sensors
530530
std::ranges::transform(input_.source, std::back_inserter(input_.sym_voltage_sensor),
@@ -611,7 +611,7 @@ class FictionalGridGenerator {
611611
input_.fault.emplace_back(FaultInput{.id = id_gen_++,
612612
.status = 1,
613613
.fault_type = FaultType::three_phase,
614-
.fault_object = input_.node.front().id});
614+
.fault_object = input_.node.back().id});
615615
}
616616

617617
void generate_tap_changer() {

0 commit comments

Comments
 (0)