VariationalEquation
@Deprecated public class JacobianMatrices extends Object
secondary equations
to
compute the Jacobian matrices with respect to the initial state vector and, if
any, to some parameters of the primary ODE set.
It is intended to be packed into an ExpandableODE
in conjunction with a primary set of ODE, which may be:
Modifier and Type | Class | Description |
---|---|---|
static class |
JacobianMatrices.MismatchedEquations |
Deprecated.
Special exception for equations mismatch.
|
Constructor | Description |
---|---|
JacobianMatrices(MainStateJacobianProvider jode,
String... parameters) |
Deprecated.
Simple constructor for a secondary equations set computing Jacobian matrices.
|
JacobianMatrices(OrdinaryDifferentialEquation fode,
double[] hY,
String... parameters) |
Deprecated.
Simple constructor for a secondary equations set computing Jacobian matrices.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addParameterJacobianProvider(NamedParameterJacobianProvider provider) |
Deprecated.
Add a parameter Jacobian provider.
|
double[][] |
extractMainSetJacobian(ODEState state) |
Deprecated.
Extract the Jacobian matrix with respect to state.
|
double[] |
extractParameterJacobian(ODEState state,
String pName) |
Deprecated.
Extract the Jacobian matrix with respect to one parameter.
|
void |
registerVariationalEquations(ExpandableODE expandable) |
Deprecated.
Register the variational equations for the Jacobians matrices to the expandable set.
|
void |
setInitialMainStateJacobian(double[][] dYdY0) |
Deprecated.
Set the initial value of the Jacobian matrix with respect to state.
|
void |
setInitialParameterJacobian(String pName,
double[] dYdP) |
Deprecated.
Set the initial value of a column of the Jacobian matrix with respect to one parameter.
|
void |
setParameterizedODE(ParametersController pc) |
Deprecated.
as of 1.0, replaced with
setParametersController(ParametersController) |
void |
setParametersController(ParametersController parametersController) |
Deprecated.
Set a parameter Jacobian provider.
|
void |
setParameterStep(String parameter,
double hP) |
Deprecated.
Set the step associated to a parameter in order to compute by finite
difference the Jacobian matrix.
|
ODEState |
setUpInitialState(ODEState initialState) |
Deprecated.
Set up initial state.
|
public JacobianMatrices(OrdinaryDifferentialEquation fode, double[] hY, String... parameters) throws MathIllegalArgumentException
Parameters must belong to the supported ones given by Parameterizable.getParametersNames()
, so the primary set of differential
equations must be Parameterizable
.
Note that each selection clears the previous selected parameters.
fode
- the primary first order differential equations set to extendhY
- step used for finite difference computation with respect to state vectorparameters
- parameters to consider for Jacobian matrices processing
(may be null if parameters Jacobians is not desired)MathIllegalArgumentException
- if there is a dimension mismatch between
the steps array hY
and the equation dimensionpublic JacobianMatrices(MainStateJacobianProvider jode, String... parameters)
Parameters must belong to the supported ones given by Parameterizable.getParametersNames()
, so the primary set of differential
equations must be Parameterizable
.
Note that each selection clears the previous selected parameters.
jode
- the primary first order differential equations set to extendparameters
- parameters to consider for Jacobian matrices processing
(may be null if parameters Jacobians is not desired)public void registerVariationalEquations(ExpandableODE expandable) throws MathIllegalArgumentException, JacobianMatrices.MismatchedEquations
This method must be called before setUpInitialState(ODEState)
expandable
- expandable set into which variational equations should be registeredMathIllegalArgumentException
- if the dimension of the partial state does not
match the selected equations set dimensionJacobianMatrices.MismatchedEquations
- if the primary set of the expandable set does
not match the one used to build the instanceExpandableODE.addSecondaryEquations(SecondaryODE)
,
setUpInitialState(ODEState)
public ODEState setUpInitialState(ODEState initialState)
This method inserts the initial Jacobian matrices data into
an ODE state
by overriding the additional
state components corresponding to the instance. It must be
called prior to integrate the equations.
This method must be called after registerVariationalEquations(ExpandableODE)
,
setInitialMainStateJacobian(double[][])
and
setInitialParameterJacobian(String, double[])
.
initialState
- initial state, without the initial Jacobians
matricespublic void addParameterJacobianProvider(NamedParameterJacobianProvider provider)
provider
- the parameter Jacobian provider to compute exactly the parameter Jacobian matrix@Deprecated public void setParameterizedODE(ParametersController pc)
setParametersController(ParametersController)
pc
- the controller to compute the parameter Jacobian matrix using finite differencespublic void setParametersController(ParametersController parametersController)
parametersController
- the controller to compute the parameter Jacobian matrix using finite differencespublic void setParameterStep(String parameter, double hP) throws MathIllegalArgumentException
Needed if and only if the primary ODE set is a ParametersController
.
Given a non zero parameter value pval for the parameter, a reasonable value
for such a step is pval * FastMath.sqrt(Precision.EPSILON)
.
A zero value for such a step doesn't enable to compute the parameter Jacobian matrix.
parameter
- parameter to consider for Jacobian processinghP
- step for Jacobian finite difference computation w.r.t. the specified parameterMathIllegalArgumentException
- if the parameter is not supportedParametersController
public void setInitialMainStateJacobian(double[][] dYdY0) throws MathIllegalArgumentException
If this method is not called, the initial value of the Jacobian matrix with respect to state is set to identity.
This method must be called before setUpInitialState(ODEState)
dYdY0
- initial Jacobian matrix w.r.t. stateMathIllegalArgumentException
- if matrix dimensions are incorrectpublic void setInitialParameterJacobian(String pName, double[] dYdP) throws MathIllegalArgumentException
If this method is not called for some parameter, the initial value of the column of the Jacobian matrix with respect to this parameter is set to zero.
This method must be called before setUpInitialState(ODEState)
pName
- parameter namedYdP
- initial Jacobian column vector with respect to the parameterMathIllegalArgumentException
- if a parameter is not supportedMathIllegalArgumentException
- if the column vector does not match state dimensionpublic double[][] extractMainSetJacobian(ODEState state)
state
- state from which to extract Jacobian matrixpublic double[] extractParameterJacobian(ODEState state, String pName)
state
- state from which to extract Jacobian matrixpName
- name of the parameter for the computed Jacobian matrixCopyright © 2016–2018 Hipparchus.org. All rights reserved.