public abstract class Expression
extends Object
http://www.net2plan.com/jom
Modifier and Type | Method and Description |
---|---|
DoubleMatrixND |
evaluate(Object... varNameVarValuePairs)
Evaluates this expression, in the point provided by the decision variables.
|
DoubleMatrixND |
evaluateConstant()
Evaluates this expression.
|
double |
evaluateConstant(int cellIndex)
Evaluates the given cell in this expression.
|
DoubleMatrix2D |
evaluateJacobian(Object... varNameVarValuePairs)
Evaluates the jacobian of this expression, in the point provided by the decision variables.
|
OptimizationProblem |
getModel()
Returns the optimization problem object that is the framework where this expression was created
|
int |
getNumDim()
Returns the number of dimensions in this expression
|
int |
getNumScalarExpressions()
Returns the number of cells (scalar expressions) inside this arrayed expression
|
boolean |
isScalar()
Returns true if the expression has two dimensions, and is a 1x1 expression (a scalar)
|
int[] |
size()
Returns the size of the array.
|
String |
toString() |
public final DoubleMatrixND evaluate(Object... varNameVarValuePairs)
varNameVarValuePairs
- An even number of parameters, first in each pair is a String with the variable name, second a DoubleMatrixND object with its valuepublic final DoubleMatrixND evaluateConstant()
public final double evaluateConstant(int cellIndex)
public final DoubleMatrix2D evaluateJacobian(Object... varNameVarValuePairs)
varNameVarValuePairs
- An even number of parameters, first in each pair is a String with the variable name, second a DoubleMatrixND object with its valuepublic final OptimizationProblem getModel()
public final int getNumDim()
public final int getNumScalarExpressions()
public final boolean isScalar()
public final int[] size()
public String toString()
toString
in class Object