java.lang.Object
com.powsybl.openloadflow.equations.JacobianMatrix<V,E>
- All Implemented Interfaces:
EquationSystemIndexListener<V,
,E> StateVectorListener
,AutoCloseable
- Direct Known Subclasses:
AcJacobianMatrix
public class JacobianMatrix<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity>
extends Object
implements EquationSystemIndexListener<V,E>, StateVectorListener, AutoCloseable
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationSystemIndexListener
EquationSystemIndexListener.ChangeType
-
Constructor Summary
ConstructorDescriptionJacobianMatrix
(EquationSystem<V, E> equationSystem, com.powsybl.math.matrix.MatrixFactory matrixFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
com.powsybl.math.matrix.Matrix
void
onEquationChange
(Equation<V, E> equation, EquationSystemIndexListener.ChangeType changeType) Called when a new equation has been added or removed to the system.void
onEquationTermChange
(EquationTerm<V, E> term) Called when a term is added or removed from an equation.void
void
onVariableChange
(Variable<V> variable, EquationSystemIndexListener.ChangeType changeType) Called when a new variable has been added or removed to the system.void
solve
(double[] b) void
solve
(com.powsybl.math.matrix.DenseMatrix b) void
solveTransposed
(double[] b) void
solveTransposed
(com.powsybl.math.matrix.DenseMatrix b) protected void
updateStatus
(JacobianMatrix.Status status)
-
Constructor Details
-
JacobianMatrix
public JacobianMatrix(EquationSystem<V, E> equationSystem, com.powsybl.math.matrix.MatrixFactory matrixFactory)
-
-
Method Details
-
updateStatus
-
onEquationChange
public void onEquationChange(Equation<V, E> equation, EquationSystemIndexListener.ChangeType changeType) Description copied from interface:EquationSystemIndexListener
Called when a new equation has been added or removed to the system.- Specified by:
onEquationChange
in interfaceEquationSystemIndexListener<V extends Enum<V> & Quantity,
E extends Enum<E> & Quantity>
-
onVariableChange
public void onVariableChange(Variable<V> variable, EquationSystemIndexListener.ChangeType changeType) Description copied from interface:EquationSystemIndexListener
Called when a new variable has been added or removed to the system.- Specified by:
onVariableChange
in interfaceEquationSystemIndexListener<V extends Enum<V> & Quantity,
E extends Enum<E> & Quantity>
-
onEquationTermChange
Description copied from interface:EquationSystemIndexListener
Called when a term is added or removed from an equation.- Specified by:
onEquationTermChange
in interfaceEquationSystemIndexListener<V extends Enum<V> & Quantity,
E extends Enum<E> & Quantity>
-
onStateUpdate
public void onStateUpdate()- Specified by:
onStateUpdate
in interfaceStateVectorListener
-
forceUpdate
public void forceUpdate() -
getMatrix
public com.powsybl.math.matrix.Matrix getMatrix() -
solve
public void solve(double[] b) -
solveTransposed
public void solveTransposed(double[] b) -
solve
public void solve(com.powsybl.math.matrix.DenseMatrix b) -
solveTransposed
public void solveTransposed(com.powsybl.math.matrix.DenseMatrix b) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-