Skip to content

Commit

Permalink
fix tests after merge
Browse files Browse the repository at this point in the history
Signed-off-by: Caio Luke <caioluke97@gmail.com>
  • Loading branch information
caioluke committed Oct 15, 2024
1 parent 1930c1a commit 42f47ca
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ void testFlowDecompositionWithPairedDanglingLineResults() {
.setEnableResultsForPairedHalfLines(true);
FlowDecompositionResults flowDecompositionResults = runFlowDecomposition(network, xnecProvider, flowDecompositionParameters);
assertEquals(3, flowDecompositionResults.getDecomposedFlowMap().size());
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "", Country.FR, Country.BE, 100.47049345958887, 100.16132637896166, 100.40091974899302, 0.000000, 0.000000, 0.000000, -0.08500982971770546, 0.000000, -0.1545835403136238, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1", "FGEN1 11 X 11 1", "", Country.FR, null, 100.47049345958887, 100.16132637896166, 100.40091974899302, 0.000000, 0.000000, 0.000000, -0.08500982971770546, 0.000000, -0.1545835403136238, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "X 11 BLOAD 11 1", "X 11 BLOAD 11 1", "", Country.BE, null, -100.33134603839709, -100.16132637896166, 100.40091974899302, 0.000000, 0.000000, 0.000000, -0.08500982971770546, 0.000000, -0.1545835403136238, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "", Country.FR, Country.BE, 100.47049345958887, 100.20292894355313, 100.43570660424885, 0.000000, 0.000000, 0.000000, -0.11638883038195749, 0.000000, -0.11638883031375974, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1", "FGEN1 11 X 11 1", "", Country.FR, null, 100.47049345958887, 100.20292894355313, 100.43570660424885, 0.000000, 0.000000, 0.000000, -0.11638883038195749, 0.000000, -0.11638883031375974, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "X 11 BLOAD 11 1", "X 11 BLOAD 11 1", "", Country.BE, null, -100.33134603839709, -100.20292894355313, 100.43570660424885, 0.000000, 0.000000, 0.000000, -0.11638883038195749, 0.000000, -0.11638883031375974, 0.000000);
}

@Test
Expand All @@ -246,9 +246,9 @@ void testFlowDecompositionWithPairedDanglingLineResultsWithMaxCurrentOverloadRes
FlowDecompositionComputer flowDecompositionComputer = new FlowDecompositionComputer(flowDecompositionParameters, new LoadFlowParameters());
FlowDecompositionResults flowDecompositionResults = flowDecompositionComputer.run(xnecProvider, network);
assertEquals(3, flowDecompositionResults.getDecomposedFlowMap().size());
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "", Country.FR, Country.BE, 100.47049345958887, 100.16132637896166, 274.61826973991793, 0.000000, 0.000000, 0.000000, -0.23252030366181453, 0.000000, -0.4228194769263953, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1", "FGEN1 11 X 11 1", "", Country.FR, null, 100.47049345958887, 100.16132637896166, 274.61826973991793, 0.000000, 0.000000, 0.000000, -0.23252030366181453, 0.000000, -0.4228194769263953, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "X 11 BLOAD 11 1", "X 11 BLOAD 11 1", "", Country.BE, null, -100.33134603839709, -100.16132637896166, 221.16325173395484, 0.000000, 0.000000, 0.000000, -0.18725974240794835, 0.000000, -0.34051678536192725, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "FGEN1 11 X 11 1 + X 11 BLOAD 11 1", "", Country.FR, Country.BE, 100.47049345958887, 100.20292894355313, 274.5993629521137, 0.000000, 0.000000, 0.000000, -0.3182164964852758, 0.000000, -0.3182164962988176, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "FGEN1 11 X 11 1", "FGEN1 11 X 11 1", "", Country.FR, null, 100.47049345958887, 100.20292894355313, 274.5993629521137, 0.000000, 0.000000, 0.000000, -0.3182164964852758, 0.000000, -0.3182164962988176, 0.000000);
validateFlowDecomposition(flowDecompositionResults, "X 11 BLOAD 11 1", "X 11 BLOAD 11 1", "", Country.BE, null, -100.33134603839709, -100.20292894355313, 221.1480251917638, 0.000000, 0.000000, 0.000000, -0.25627499286454153, 0.000000, -0.2562749927143778, 0.000000);
}

@Test
Expand Down

0 comments on commit 42f47ca

Please sign in to comment.