Diana  0.8.3
Public Member Functions
IDianaSensDAESO Class Reference

#include <IDianaSensDAESO.hpp>

Inheritance diagram for IDianaSensDAESO:
IDianaDAESO ICapeNumericDAESO ICapeNumericESO ICapeIdentification ICapeUtilities DianaSensDAESO

List of all members.

Public Member Functions

virtual ~IDianaSensDAESO ()
virtual CapeLong GetNumSensParameters ()=0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual CapeLong GetNumSensInitStates ()=0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual const CapeArrayLong & GetSensParametersIndices () const =0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual const CapeArrayLong & GetSensInitStatesIndices () const =0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual const CapeArrayDouble & GetSensParameters () const =0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual void SetSensParameters (const Common::Types::CapeArrayDouble &pars)=0 throw (ECapeUnknown, ECapeFailedInitialisation)
virtual const DianaSparseArrayGetSensParJacobianValues ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual const CapeArrayDouble & GetSensInitStates ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeFailedInitialisation)
virtual void SetSensInitStates (const Common::Types::CapeArrayDouble &states)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeFailedInitialisation)
virtual
Common::Types::CapeArrayDouble 
GetAllModelVariables ()=0
virtual void SetAllModelVariables (const Common::Types::CapeArrayDouble &vars)=0
virtual
Common::Types::CapeArrayDouble 
GetAllModelDerivatives ()=0
virtual void SetAllModelDerivatives (const Common::Types::CapeArrayDouble &vars)=0
virtual const CapeArrayDouble & GetAllModelResiduals ()=0 throw (ECapeUnknown, ECapeBadInvOrder, ECapeFailedInitialisation)
virtual const DianaSparseArrayGetAllModelJacobianValues () const =0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual const
Diana::DianaSparseArray
GetAllModelDiffJacobianValues () const =0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual
Common::Types::CapeArrayDouble 
GetAllSensitivities ()=0
virtual void SetAllSensitivities (const Common::Types::CapeArrayDouble &vars)=0
virtual void SetFixedVariables (const Common::Types::CapeArrayLong &varIndices, const Common::Types::CapeArrayDouble &varValues)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds, Common::Error::ECapeNoImpl)
virtual void SetAllVariables (const Common::Types::CapeArrayDouble &varValues)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual void SetVariables (const Common::Types::CapeArrayLong &varIndices, const Common::Types::CapeArrayDouble &varValues)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual const
Common::Types::CapeArrayDouble
GetAllVariables ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual
Common::Types::CapeArrayDouble 
GetVariables (const Common::Types::CapeArrayLong &varIndices)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual const
Common::Types::CapeArrayDouble
GetAllResiduals ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder, Common::Error::ECapeFailedInitialisation)
virtual const
Diana::DianaSparseArray
GetJacobianStruct ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual const
Diana::DianaSparseArray
GetAllJacobianValues ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual void SetVariablesIndex (const Common::Types::CapeArrayLong &varIndexes)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeOutOfBounds, Common::Error::ECapeNoImpl)
virtual const
Common::Types::CapeArrayDouble
GetLowerBounds ()=0 throw (Common::Error::ECapeUnknown)
virtual const
Common::Types::CapeArrayDouble
GetUpperBounds ()=0 throw (Common::Error::ECapeUnknown)
virtual void SetAllDerivatives (const Common::Types::CapeArrayDouble &varValues)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual const
Common::Types::CapeArrayDouble
GetAllDerivatives ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual
Common::Types::CapeArrayDouble 
GetDerivatives (const Common::Types::CapeArrayLong &varIndices)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual void SetDerivatives (const Common::Types::CapeArrayLong &varIndices, const Common::Types::CapeArrayDouble &varValues)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual const
Diana::DianaSparseArray
GetDiffJacobianStruct ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual const
Diana::DianaSparseArray
GetAllDiffJacobianValues ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
virtual void SetIndependentVar (Common::Types::CapeDouble indVar)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
virtual Common::Types::CapeDouble GetIndependentVar ()=0 throw (Common::Error::ECapeUnknown)

Detailed Description

Special ESO to calculate a model with certain sensitivities automatically.


Constructor & Destructor Documentation

virtual ~IDianaSensDAESO ( ) [inline, virtual]

Virtual default destructor.


Member Function Documentation

Gets the values of the derivatives for all the variables. The length of the array returned will be equal to the number of variables, but the values of derivatives which do not appear in the equation system may be meaningless.

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Returns a matrix object whose GetValues method will provide the differential Jacobian values at the ESO s current variable values each time it is called (the values of entries indicated as uncomputable in the matrix returned by GetDiffJacobianStruct will be meaningless, but the call to GetValues will not cause an error simply because such entries exist).

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Returns a matrix object whose GetValues method will provide the Jacobian values at the ESO's current variable values each time it is called (the values of entries indicated as uncomputable in the matrix returned by GetJacobianStruct will be meaningless, but the call to GetValues will not cause an error simply because such entries exist).

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Get only the derivatives of the model

Implemented in DianaSensDAESO.

virtual const CapeArrayDouble& GetAllModelResiduals ( ) throw (ECapeUnknown, ECapeBadInvOrder, ECapeFailedInitialisation) [pure virtual]

Get only the residuals of the model

Implemented in DianaSensDAESO.

Get only the states of the model

Implemented in DianaSensDAESO.

Gets the value of all the residuals.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Get the vector of all sensitivities. These are 2 Sensitivity-matrices inlined: first

\[\frac{\partial x_j}{\partial p_k} j=1\dots n_{\mbox{var}} k=1\dots n_{\mbox{spar}}\]

and then

\[\frac{\partial x_j}{\partial 0_l} j=1\dots n_{\mbox{var}} l=1\dots n_{\mbox{sx}_0}\]

Implemented in DianaSensDAESO.

Gets the value of all variables.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Gets the value of a subset of the derivatives.

Parameters:
varIndicesthe indices of the variables whose derivatives we wish to get.

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Returns a matrix object which contains information on the structure of the differential Jacobian matrix. The GetValues method of this object will provide values encoded as follows:

  • -1.0 indicates an entry which cannot be computed by the ESO.
  • 0.0 indicates an entry which will always be zero.
  • Any other value indicates a nonzero, computable entry.

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Gets the current value of the independent variable in the DAESO.

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Returns a matrix object which contains information on the structure of the Jacobian matrix. The GetValues method of this object will provide values encoded as follows :

  • -1.0 indicates an entry which cannot be computed by the ESO.
  • 0.0 indicates an entry which will always be zero.
  • Any other value indicates a nonzero, computable entry.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Returns array of lower bounds for the state vector.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

virtual CapeLong GetNumSensInitStates ( ) throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Get the number of initial states sensitivities

Implemented in DianaSensDAESO.

virtual CapeLong GetNumSensParameters ( ) throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Get the model. The user is allowed to read the data from the model, but he should not change the values through the direct methods of the model. The SensDAESO relies on the fact, that it controls the model state allone. Get the number of sensitivity parameters

Implemented in DianaSensDAESO.

virtual const CapeArrayDouble& GetSensInitStates ( ) throw (Common::Error::ECapeUnknown, Common::Error::ECapeFailedInitialisation) [pure virtual]

Get the values of the sensitivity-initstates

Implemented in DianaSensDAESO.

virtual const CapeArrayLong& GetSensInitStatesIndices ( ) const throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Get the indices of initial states sensitivities

Implemented in DianaSensDAESO.

virtual const CapeArrayDouble& GetSensParameters ( ) const throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Get the values of the sensitivity-parameters.

Implemented in DianaSensDAESO.

virtual const CapeArrayLong& GetSensParametersIndices ( ) const throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Get the indices of sensitivity parameters

Implemented in DianaSensDAESO.

Get the Jacobian for the sensitivity-parameters

Implemented in DianaSensDAESO.

Returns array of upper bounds for the state vector.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Gets the value of a subset of the variables.

Parameters:
varIndicesthe indices of the variables we wish to get.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Sets the numerical value of all the derivatives. The length of the array supplied must equal the number of variables: values for derivatives which do not appear in any of the equations can be ignored.

Parameters:
varValuesthe values of the derivatives.

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

virtual void SetAllModelDerivatives ( const Common::Types::CapeArrayDouble vars) [pure virtual]

Set the only the model variables

See also:
GetAllModelDerivatives()

Implemented in DianaSensDAESO.

virtual void SetAllModelVariables ( const Common::Types::CapeArrayDouble vars) [pure virtual]

Set the only the model variables

See also:
GetAllModelVariables()

Implemented in DianaSensDAESO.

virtual void SetAllSensitivities ( const Common::Types::CapeArrayDouble vars) [pure virtual]

Set the vector of all sensitivities.

See also:
GetAllSensitivities()

Implemented in DianaSensDAESO.

Sets the value of all variables of this ESO.

Parameters:
varValuesthe values of all the variables we wish to set

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Sets the value of a subset of the derivatives.

Parameters:
varIndicesthe indices of the variables whose derivatives we wish to get.
varValuesthe values of all the derivatives we wish to set

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Sets the value of some variables and marks these variables as fixed.

Parameters:
varIndicesthe indices of the variables we wish to set
varValuesthe values of the variables we wish to set

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Sets the value of the independent variable in the DAESO.

Parameters:
indVarthe value of the independent variable

Implements ICapeNumericDAESO.

Implemented in DianaSensDAESO.

Set the values of the sensitivity-parameters

Implemented in DianaSensDAESO.

virtual void SetSensParameters ( const Common::Types::CapeArrayDouble pars) throw (ECapeUnknown, ECapeFailedInitialisation) [pure virtual]

Set the values of the sensitivity-parameters

Implemented in DianaSensDAESO.

Sets the value of some variables.

Parameters:
varIndicesthe indices of the variables we wish to set
varValuesthe values of all the variables we wish to set

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.

Currently not implemented.

Implements ICapeNumericESO.

Implemented in DianaSensDAESO.


The documentation for this class was generated from the following file: