Class EquationTerm.MultiplyByScalarEquationTerm
- java.lang.Object
-
- com.powsybl.openloadflow.equations.EquationTerm.MultiplyByScalarEquationTerm
-
- All Implemented Interfaces:
EquationTerm
,Evaluable
- Enclosing interface:
- EquationTerm
public static class EquationTerm.MultiplyByScalarEquationTerm extends Object implements EquationTerm
-
-
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()
Equation
getEquation()
List<Variable>
getVariables()
Get the list of variable this equation term depends on.boolean
hasRhs()
CheckEquationTerm.rhs()
can return a value different from zero.boolean
isActive()
double
rhs()
Get part of the partial derivative that has to be moved to right hand side.void
setActive(boolean active)
void
setEquation(Equation equation)
void
update(double[] x)
Update equation term usingx
variable values.void
write(Writer writer)
-
-
-
Method Detail
-
getEquation
public Equation getEquation()
- Specified by:
getEquation
in interfaceEquationTerm
-
setEquation
public void setEquation(Equation equation)
- Specified by:
setEquation
in interfaceEquationTerm
-
setActive
public void setActive(boolean active)
- Specified by:
setActive
in interfaceEquationTerm
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceEquationTerm
-
getElementType
public ElementType getElementType()
- Specified by:
getElementType
in interfaceEquationTerm
-
getElementNum
public int getElementNum()
- Specified by:
getElementNum
in interfaceEquationTerm
-
getVariables
public List<Variable> getVariables()
Description copied from interface:EquationTerm
Get the list of variable this equation term depends on.- Specified by:
getVariables
in interfaceEquationTerm
- 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.- Specified by:
update
in interfaceEquationTerm
- Parameters:
x
- variables values vector
-
eval
public double eval()
Description copied from interface:EquationTerm
Evaluate equation term.- Specified by:
eval
in interfaceEquationTerm
- Specified by:
eval
in interfaceEvaluable
- Returns:
- value of the equation term
-
der
public double der(Variable variable)
Description copied from interface:EquationTerm
Get partial derivative.- Specified by:
der
in interfaceEquationTerm
- 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.- Specified by:
hasRhs
in interfaceEquationTerm
- 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.- Specified by:
rhs
in interfaceEquationTerm
- 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
-
write
public void write(Writer writer) throws IOException
- Specified by:
write
in interfaceEquationTerm
- Throws:
IOException
-
-