Class EquationTerm.VariableEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.AbstractEquationTerm
-
- com.powsybl.openloadflow.equations.EquationTerm.VariableEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
- Enclosing interface:
- EquationTerm
public static class EquationTerm.VariableEquationTerm extends AbstractEquationTerm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.openloadflow.equations.EquationTerm
EquationTerm.MultiplyByScalarEquationTerm, EquationTerm.VariableEquationTerm
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
double
der(Variable variable)
Get partial derivative.double
eval()
Evaluate equation term.int
getElementNum()
ElementType
getElementType()
List<Variable>
getVariables()
Get the list of variable this equation term depends on.boolean
hasRhs()
CheckEquationTerm.rhs()
can return a value different from zero.double
rhs()
Get part of the partial derivative that has to be moved to right hand side.void
update(double[] x)
Update equation term usingx
variable values.void
write(Writer writer)
-
Methods inherited from class com.powsybl.openloadflow.equations.AbstractEquationTerm
getEquation, isActive, setActive, setEquation
-
-
-
-
Method Detail
-
getElementType
public ElementType getElementType()
-
getElementNum
public int getElementNum()
-
getVariables
public List<Variable> 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.
-
update
public void update(double[] x)
Description copied from interface:EquationTerm
Update equation term usingx
variable values.- Parameters:
x
- variables values vector
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Returns:
- value of the equation term
-
der
public double der(Variable 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
-
hasRhs
public boolean hasRhs()
Description copied from interface:EquationTerm
CheckEquationTerm.rhs()
can return a value different from zero.- Returns:
- true if
EquationTerm.rhs()
can return a value different from zero, false otherwise
-
rhs
public double rhs()
Description copied from interface:EquationTerm
Get part of the partial derivative that has to be moved to right hand side.- Returns:
- value of part of the partial derivative that has to be moved to right hand side
-
calculateSensi
public double calculateSensi(com.powsybl.math.matrix.DenseMatrix x, int column)
- Specified by:
calculateSensi
in interfaceEquationTerm
- Overrides:
calculateSensi
in classAbstractEquationTerm
-
write
public void write(Writer writer) throws IOException
- Throws:
IOException
-
-