- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm<V,E>
-
- com.powsybl.openloadflow.equations.VariableEquationTerm<V,E>
-
- All Implemented Interfaces:
EquationTerm<V,E>
,Evaluable
public class VariableEquationTerm<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity> extends AbstractEquationTerm<V,E>
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity>
-
-
Field Summary
-
Fields inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
self, sv
-
-
Constructor Summary
Constructors Constructor Description VariableEquationTerm(Variable<V> variable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateSensi(com.powsybl.math.matrix.DenseMatrix dx, int column)
double
der(Variable<V> variable)
Get partial derivative.double
eval()
Evaluate equation term.int
getElementNum()
ElementType
getElementType()
List<Variable<V>>
getVariables()
Get the list of variable this equation term depends on.void
write(Writer writer)
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getChildren, getEquation, hasRhs, isActive, rhs, setActive, setEquation, setSelf, setStateVector
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.openloadflow.equations.EquationTerm
minus, multiply, multiply
-
-
-
-
Method Detail
-
getElementType
public ElementType getElementType()
-
getElementNum
public int getElementNum()
-
getVariables
public List<Variable<V>> getVariables()
Description copied from interface:EquationTerm
Get the list of variable this equation term depends on.- Returns:
- the list of variable this equation term depends on.
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
public double der(Variable<V> variable)
Description copied from interface:EquationTerm
Get partial derivative.- Parameters:
variable
- the variable the partial derivative is with respect to- Returns:
- value of the partial derivative
-
calculateSensi
public double calculateSensi(com.powsybl.math.matrix.DenseMatrix dx, int column)
- Specified by:
calculateSensi
in interfaceEquationTerm<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity>
- Overrides:
calculateSensi
in classAbstractEquationTerm<V extends Enum<V> & Quantity,E extends Enum<E> & Quantity>
-
write
public void write(Writer writer) throws IOException
- Throws:
IOException
-
-