Class NewtonRaphson
java.lang.Object
com.powsybl.openloadflow.ac.solver.AbstractAcSolver
com.powsybl.openloadflow.ac.solver.NewtonRaphson
- All Implemented Interfaces:
AcSolver
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NewtonRaphsonParameters
static final List<AcEquationType>
Fields inherited from class com.powsybl.openloadflow.ac.solver.AbstractAcSolver
detailedReport, equationSystem, equationVector, j, network, targetVector
-
Constructor Summary
ConstructorsConstructorDescriptionNewtonRaphson
(LfNetwork network, NewtonRaphsonParameters parameters, EquationSystem<AcVariableType, AcEquationType> equationSystem, JacobianMatrix<AcVariableType, AcEquationType> j, TargetVector<AcVariableType, AcEquationType> targetVector, EquationVector<AcVariableType, AcEquationType> equationVector, boolean detailedReport) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.apache.commons.lang3.tuple.Pair<Equation<AcVariableType,
AcEquationType>, Double>> findLargestMismatches
(EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch, int count) static Map<AcEquationType,
org.apache.commons.lang3.tuple.Pair<Equation<AcVariableType, AcEquationType>, Double>> getLargestMismatchByAcEquationType
(EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch) getName()
void
reportAndLogLargestMismatchByAcEquationType
(com.powsybl.commons.reporter.Reporter reporter, EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch, double norm, int iteration) run
(VoltageInitializer voltageInitializer, com.powsybl.commons.reporter.Reporter reporter)
-
Field Details
-
REPORTED_AC_EQUATION_TYPES
-
parameters
-
-
Constructor Details
-
NewtonRaphson
public NewtonRaphson(LfNetwork network, NewtonRaphsonParameters parameters, EquationSystem<AcVariableType, AcEquationType> equationSystem, JacobianMatrix<AcVariableType, AcEquationType> j, TargetVector<AcVariableType, AcEquationType> targetVector, EquationVector<AcVariableType, AcEquationType> equationVector, boolean detailedReport)
-
-
Method Details
-
getName
-
findLargestMismatches
public static List<org.apache.commons.lang3.tuple.Pair<Equation<AcVariableType,AcEquationType>, findLargestMismatchesDouble>> (EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch, int count) -
getLargestMismatchByAcEquationType
public static Map<AcEquationType,org.apache.commons.lang3.tuple.Pair<Equation<AcVariableType, getLargestMismatchByAcEquationTypeAcEquationType>, Double>> (EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch) -
reportAndLogLargestMismatchByAcEquationType
public void reportAndLogLargestMismatchByAcEquationType(com.powsybl.commons.reporter.Reporter reporter, EquationSystem<AcVariableType, AcEquationType> equationSystem, double[] mismatch, double norm, int iteration) -
run
public AcSolverResult run(VoltageInitializer voltageInitializer, com.powsybl.commons.reporter.Reporter reporter)
-