COPASI API  4.40.278
CILDMMethod Class Reference

The CILDMMethod class implements the ILDM method. More...

#include <CILDMMethod.h>

Inheritance diagram for CILDMMethod:
[legend]

Public Member Functions

 CILDMMethod (const CDataContainer *pParent, const CTaskEnum::Method &methodType=CTaskEnum::Method::tssILDM, const CTaskEnum::Task &taskType=CTaskEnum::Task::tssAnalysis)
 
 CILDMMethod (const CILDMMethod &src, const CDataContainer *pParent)
 
virtual void createAnnotationsM ()
 
void emptyVectors ()
 
const CDataArraygetReacSlowSpacePrintAnn () const
 
const CDataArraygetTMP1PrintAnn () const
 
const CDataArraygetTMP2PrintAnn () const
 
const CDataArraygetTMP3PrintAnn () const
 
const CDataArraygetVfastSpacePrintAnn () const
 
const CDataArraygetVslowMetabPrintAnn () const
 
const CDataArraygetVslowPrintAnn () const
 
const CDataArraygetVslowSpacePrintAnn () const
 
virtual void initializeOutput ()
 
virtual void initializeParameter ()
 
virtual void printResult (std::ostream *ostream) const
 
virtual bool setAnnotationM (size_t step)
 
void setVectors (int slowMode)
 
virtual void start ()
 
virtual void step (const double &deltaT)
 
virtual ~CILDMMethod ()
 
- Public Member Functions inherited from CTSSAMethod
 CTSSAMethod (const CDataContainer *pParent, const CTaskEnum::Method &methodType, const CTaskEnum::Task &taskType=CTaskEnum::Task::tssAnalysis)
 
 CTSSAMethod (const CTSSAMethod &src, const CDataContainer *pParent)
 
void emptyVectors ()
 
const int & getCurrentStep () const
 
const CDataArraygetTable (const std::string &name)
 
const std::vector< std::string > & getTableNames () const
 
C_FLOAT64 getTimeForStep (int step) const
 
CVector< C_FLOAT64getVec_TimeScale (int step)
 
virtual bool isValidProblem (const CCopasiProblem *pProblem)
 
void setProblem (CTSSAProblem *problem)
 
void setVectors (int slowMode)
 
virtual ~CTSSAMethod ()
 
- Public Member Functions inherited from CCopasiMethod
 CCopasiMethod (const CCopasiMethod &src, const CDataContainer *pParent)
 
virtual void clearCallBack ()
 
const CProcessReportLevelgetCallBack () const
 
CMathContainergetMathContainer () const
 
const CTaskEnum::MethodgetSubType () const
 
const CTaskEnum::TaskgetType () const
 
virtual void load (CReadConfig &configBuffer, CReadConfig::Mode mode=CReadConfig::SEARCH)
 
CCopasiMethodoperator= (const CCopasiMethod &rhs)
 
virtual void print (std::ostream *ostream) const
 
virtual bool setCallBack (CProcessReportLevel callBack)
 
void setMathContainer (CMathContainer *pContainer)
 
virtual ~CCopasiMethod ()
 
- Public Member Functions inherited from CCopasiParameterGroup
bool addGroup (const std::string &name)
 
void addParameter (CCopasiParameter *pParameter)
 
bool addParameter (const CCopasiParameter &parameter)
 
bool addParameter (const std::string &name, const CCopasiParameter::Type type, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
template<class CType >
bool addParameter (const std::string &name, const CCopasiParameter::Type type, const CType &value, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
virtual bool applyData (const CData &data, CUndoData::CChangeSet &changes)
 
CCopasiParameterGroupassertGroup (const std::string &name, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
template<class CType >
CType * assertParameter (const std::string &name, const CCopasiParameter::Type type, const CType &defaultValue, const CCopasiParameter::UserInterfaceFlag &flag=CCopasiParameter::UserInterfaceFlag::All)
 
index_iterator beginIndex () const
 
const_name_iterator beginName () const
 
 CCopasiParameterGroup (const CCopasiParameterGroup &src, const CDataContainer *pParent=NULL)
 
 CCopasiParameterGroup (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="ParameterGroup")
 
void clear ()
 
virtual void createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const
 
index_iterator endIndex () const
 
const_name_iterator endName () const
 
CCopasiParameterGroupgetElementTemplates ()
 
const CCopasiParameterGroupgetElementTemplates () const
 
CCopasiParameterGroupgetGroup (const size_t &index)
 
const CCopasiParameterGroupgetGroup (const size_t &index) const
 
CCopasiParameterGroupgetGroup (const std::string &name)
 
const CCopasiParameterGroupgetGroup (const std::string &name) const
 
virtual size_t getIndex (const CDataObject *pObject) const
 
size_t getIndex (const std::string &name) const
 
std::string getKey (const size_t &index) const
 
std::string getKey (const std::string &name) const
 
virtual const std::string & getName (const size_t &index) const
 
virtual const CObjectInterfacegetObject (const CCommonName &cn) const
 
CCopasiParametergetParameter (const size_t &index)
 
const CCopasiParametergetParameter (const size_t &index) const
 
CCopasiParametergetParameter (std::string name)
 
const CCopasiParametergetParameter (std::string name) const
 
CCopasiParameter::Type getType (const size_t &index) const
 
CCopasiParameter::Type getType (const std::string &name) const
 
std::string getUniqueParameterName (const CCopasiParameter *pParameter) const
 
template<class CType >
CType & getValue (const size_t &index)
 
template<class CType >
const CType & getValue (const size_t &index) const
 
template<class CType >
CType & getValue (const std::string &name)
 
template<class CType >
const CType & getValue (const std::string &name) const
 
bool haveTemplate () const
 
virtual CUndoObjectInterfaceinsert (const CData &data)
 
CCopasiParameterGroupoperator= (const CCopasiParameterGroup &rhs)
 
virtual bool remove (CDataObject *pObject)
 
bool removeParameter (CCopasiParameter *pParameter)
 
bool removeParameter (const size_t &index)
 
bool removeParameter (const std::string &name)
 
virtual void setUserInterfaceFlag (const UserInterfaceFlag &flag)
 
template<class CType >
bool setValue (const size_t &index, const CType &value)
 
template<class CType >
bool setValue (const std::string &name, const CType &value)
 
size_t size (const UserInterfaceFlag &require=UserInterfaceFlag::None, const UserInterfaceFlag &exclude=UserInterfaceFlag::None) const
 
bool swap (const size_t &iFrom, const size_t &iTo)
 
bool swap (index_iterator &from, index_iterator &to)
 
virtual CData toData () const
 
virtual void updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject)
 
virtual ~CCopasiParameterGroup ()
 
- Public Member Functions inherited from CCopasiParameter
 CCopasiParameter (const CCopasiParameter &src, const CDataContainer *pParent)
 
 CCopasiParameter (const std::string &name, const Type &type, const void *pValue=NULL, const CDataContainer *pParent=NO_PARENT, const std::string &objectType="Parameter")
 
virtual CCommonName getCN () const override
 
template<class CType >
const CType & getDefault () const
 
virtual const std::string & getKey () const override
 
virtual std::string getObjectDisplayName () const override
 
const CCopasiParameter::TypegetType () const
 
const UserInterfaceFlaggetUserInterfaceFlag () const
 
template<class CType >
std::vector< std::pair< CType, CType > > & getValidValues ()
 
template<class CType >
const std::vector< std::pair< CType, CType > > & getValidValues () const
 
void * getValidValuesPointer () const
 
template<class CType >
CType & getValue ()
 
template<class CType >
const CType & getValue () const
 
virtual void * getValuePointer () const override
 
CDataObjectgetValueReference () const
 
bool hasValidValues () const
 
bool isBasic () const
 
bool isDefault () const
 
bool isEditable () const
 
bool isUnsupported () const
 
bool isValidValue (const bool &value) const
 
bool isValidValue (const C_FLOAT64 &value) const
 
bool isValidValue (const C_INT32 &value) const
 
bool isValidValue (const CCommonName &value) const
 
template<class CType >
bool isValidValue (const CType &) const
 
bool isValidValue (const std::string &value) const
 
bool isValidValue (const std::vector< CCopasiParameter * > &value) const
 
bool isValidValue (const unsigned C_INT32 &value) const
 
CCopasiParameteroperator= (const CCopasiParameter &rhs)
 
template<class CType >
bool setDefault (const CType &defaultValue)
 
bool setDefault (const std::vector< CCopasiParameter * > &defaultValue)
 
virtual bool setObjectParent (const CDataContainer *pParent) override
 
template<class CType , class Enum >
bool setValidValues (const CEnumAnnotation< CType, Enum > &validValues)
 
template<class CType >
bool setValidValues (const std::vector< std::pair< CType, CType > > &validValues)
 
template<class CType >
bool setValue (const CType &value)
 
bool setValue (const std::vector< CCopasiParameter * > &value)
 
virtual ~CCopasiParameter ()
 
- Public Member Functions inherited from CDataContainer
virtual bool add (CDataObject *pObject, const bool &adopt=true)
 
virtual bool appendDeletedDependentData (CUndoData &undoData) const
 
 CDataContainer (const CDataContainer &src, const CDataContainer *pParent)
 
 CDataContainer (const std::string &name, const CDataContainer *pParent=NO_PARENT, const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 
virtual std::string getChildObjectUnits (const CDataObject *pObject) const
 
void getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const
 
virtual objectMapgetObjects ()
 
virtual const objectMapgetObjects () const
 
virtual const std::string getUnits () const override
 
virtual const CDataObjectgetValueObject () const override
 
void objectRenamed (CDataObject *pObject, const std::string &oldName)
 
virtual ~CDataContainer ()
 
- Public Member Functions inherited from CDataObject
void addIssue (const CIssue &issue)
 
void addReference (const CDataContainer *pReference)
 
virtual void calculateValue () override
 
 CDataObject (const CDataObject &src, const CDataContainer *pParent=NULL)
 
virtual void destruct () override
 
virtual const CDataObjectgetDataObject () const override
 
CDataContainergetObjectAncestor (const std::string &type) const
 
CDataModelgetObjectDataModel () const
 
const CObjectInterfacegetObjectFromCN (const CCommonName &cn) const
 
const std::string & getObjectName () const
 
CDataContainergetObjectParent () const
 
const std::string & getObjectType () const
 
virtual const CObjectInterface::ObjectSetgetPrerequisites () const override
 
virtual const CValiditygetValidity () const override
 
bool hasFlag (const Flag &flag) const
 
virtual bool isPrerequisiteForContext (const CObjectInterface *pObject, const CCore::SimulationContextFlag &context, const CObjectInterface::ObjectSet &changedObjects) const override
 
bool prerequisitsContains (const DataObjectSet &objects) const
 
void removeIssue (const CIssue &issue)
 
void removeReference (const CDataContainer *pReference)
 
bool setObjectName (const std::string &name)
 
void validityChanged (const CValidity &changedValidity) override
 
void validityRemoved (const CValidity &changedValidity)
 
virtual ~CDataObject ()
 
- Public Member Functions inherited from CObjectInterface
 CObjectInterface ()
 
 CObjectInterface (const CObjectInterface &src)
 
virtual ~CObjectInterface ()
 
- Public Member Functions inherited from CUndoObjectInterface
 CUndoObjectInterface ()
 
 CUndoObjectInterface (const CUndoObjectInterface &src)
 
bool generateUuid ()
 
const xg::Guid & getUuid () const
 
bool setUuid (const std::string &uuid)
 
bool setUuid (const xg::Guid &uuid)
 
virtual ~CUndoObjectInterface ()
 

Protected Member Functions

void deuflhard (C_INT &slow, C_INT &info)
 
void newton (C_FLOAT64 *ys, C_INT &slow, C_INT &info)
 
void transformation_norm (C_INT &slow, C_INT &info)
 
- Protected Member Functions inherited from CTSSAMethod
void calculateDerivatives (C_FLOAT64 *X1, C_FLOAT64 *Y1, bool useReducedModel)
 
bool elevateChildren ()
 
void integrationMethodStart ()
 
void integrationStep (const double &deltaT)
 
void map_index (C_FLOAT64 *eval_r, C_INT *index, const C_INT &dim)
 
void map_index_desc (C_FLOAT64 *eval_r, C_INT *index, const C_INT &dim)
 
void mat_anal_fast_space (C_INT &slow)
 
void mat_anal_fast_space_thomas (C_INT &slow)
 
void mat_anal_metab (C_INT &slow)
 
void mat_anal_mod (C_INT &slow)
 
void mat_anal_mod_space (C_INT &slow)
 
double orthog (C_INT &number1, C_INT &number2)
 
void schur (C_INT &info)
 
void schur_desc (C_INT &info)
 
void sylvester (C_INT slow, C_INT &info)
 
void update_nid (C_INT *index, C_INT *nid, const C_INT &dim)
 
void update_pid (C_INT *index, C_INT *pid, const C_INT &dim)
 
virtual void updateCurrentTime ()
 
- Protected Member Functions inherited from CCopasiMethod
 CCopasiMethod (const CCopasiMethod &src)
 
 CCopasiMethod (const CDataContainer *pParent, const CTaskEnum::Method &methodType, const CTaskEnum::Task &taskType)
 
virtual void signalMathContainerChanged ()
 
- Protected Member Functions inherited from CCopasiParameterGroup
 CCopasiParameterGroup ()
 
- Protected Member Functions inherited from CCopasiParameter
 CCopasiParameter (const CCopasiParameter &src)
 
- Protected Member Functions inherited from CDataContainer
template<class CType >
CDataMatrixReference< CType > * addMatrixReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataObjectReference< CType > * addObjectReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
template<class CType >
CDataVectorReference< CType > * addVectorReference (const std::string &name, CType &reference, const CFlags< Flag > &flag=CFlags< Flag >::None)
 
 CDataContainer (const CDataContainer &src)
 
void initObjects ()
 
- Protected Member Functions inherited from CDataObject
 CDataObject ()
 
 CDataObject (const std::string &name, const CDataContainer *pParent=static_cast< CDataContainer * >((void *) 0), const std::string &type="CN", const CFlags< Flag > &flag=CFlags< Flag >::None)
 

Protected Attributes

CVector< C_FLOAT64mReacSlowSpace
 
CMatrix< C_FLOAT64mReacSlowSpacePrint
 
CMatrix< C_FLOAT64mTMP1
 
CMatrix< C_FLOAT64mTMP1Print
 
CMatrix< C_FLOAT64mTMP2
 
CMatrix< C_FLOAT64mTMP2Print
 
CMatrix< C_FLOAT64mTMP3
 
CMatrix< C_FLOAT64mTMP3Print
 
std::vector< CVector< C_FLOAT64 > > mVec_mReacSlowSpace
 
std::vector< CMatrix< C_FLOAT64 > > mVec_mTMP1
 
std::vector< CMatrix< C_FLOAT64 > > mVec_mTMP2
 
std::vector< CMatrix< C_FLOAT64 > > mVec_mTMP3
 
std::vector< CVector< C_FLOAT64 > > mVec_mVfastSpace
 
std::vector< CMatrix< C_FLOAT64 > > mVec_mVslow
 
std::vector< CMatrix< C_FLOAT64 > > mVec_mVslowMetab
 
std::vector< CVector< C_FLOAT64 > > mVec_mVslowSpace
 
CMatrix< C_FLOAT64mVfastSpacePrint
 
CMatrix< C_FLOAT64mVslowMetabPrint
 
CMatrix< C_FLOAT64mVslowPrint
 
CMatrix< C_FLOAT64mVslowSpacePrint
 
CDataArraypReacSlowSpacePrintAnn
 
CDataArraypTmp1
 
CDataArraypTMP1
 
CDataArraypTMP1PrintAnn
 
CDataArraypTmp2
 
CDataArraypTMP2
 
CDataArraypTMP2PrintAnn
 
CDataArraypTmp3
 
CDataArraypTMP3
 
CDataArraypTMP3PrintAnn
 
CDataArraypTmp4
 
CDataArraypTmp5
 
CDataArraypVfastSpacePrintAnn
 
CDataArraypVslowMetabPrintAnn
 
CDataArraypVslowPrintAnn
 
CDataArraypVslowSpacePrintAnn
 
- Protected Attributes inherited from CTSSAMethod
std::map< std::string, CDataArray * > mapTableToName
 
CVector< C_FLOAT64mCfast
 
C_FLOAT64 mConcentration2Number
 
CVectorCore< C_FLOAT64mContainerState
 
int mCurrentStep
 
std::vector< C_FLOAT64mCurrentTime
 
C_INT mDim
 
C_FLOAT64 mDtol
 
C_FLOAT64 mEPS
 
CMatrix< C_FLOAT64mJacobian
 
CMatrix< C_FLOAT64mJacobian_initial
 
C_FLOAT64 mNumber2Concentration
 
C_FLOAT64mpContainerStateTime
 
C_FLOAT64mpFirstSpecies
 
const C_FLOAT64mpFirstSpeciesRate
 
CLsodaMethodmpLsodaMethod
 
CTSSAProblemmpProblem
 
CMatrix< C_FLOAT64mQ
 
CMatrix< C_FLOAT64mQ_desc
 
CMatrix< C_FLOAT64mQz
 
CMatrix< C_FLOAT64mR
 
CMatrix< C_FLOAT64mR_desc
 
C_INT32 mSlow
 
CMatrix< C_FLOAT64mTd
 
CMatrix< C_FLOAT64mTd_save
 
CMatrix< C_FLOAT64mTdInverse
 
CMatrix< C_FLOAT64mTdInverse_save
 
std::vector< C_INTmVec_SlowModes
 
std::vector< CVector< C_FLOAT64 > > mVec_TimeScale
 
CVector< C_FLOAT64mVfast_space
 
CMatrix< C_FLOAT64mVslow
 
CMatrix< C_FLOAT64mVslow_metab
 
CVector< C_FLOAT64mVslow_space
 
CVector< C_FLOAT64mY_cons
 
CVector< C_FLOAT64mY_initial
 
std::vector< std::string > tableNames
 
- Protected Attributes inherited from CCopasiMethod
CMathContainermpContainer
 
CProcessReportLevel mProcessReport
 
- Protected Attributes inherited from CCopasiParameter
std::string mKey
 
void * mpDefault
 
void * mpValidValues
 
void * mpValue
 
CDataObjectmpValueReference
 
UserInterfaceFlag mUserInterfaceFlag
 
- Protected Attributes inherited from CDataContainer
objectMap mObjects
 
- Protected Attributes inherited from CDataObject
ObjectSet mPrerequisits
 
std::set< CDataContainer * > mReferences
 
- Protected Attributes inherited from CObjectInterface
CValidity mValidity
 

Private Member Functions

 CILDMMethod ()
 

Additional Inherited Members

- Public Types inherited from CCopasiParameterGroup
typedef CDataObjectMap::const_type_iterator< CCopasiParameterconst_name_iterator
 
typedef std::vector< CCopasiParameter * > elements
 
typedef elements::iterator index_iterator
 
typedef CDataObjectMap::type_iterator< CCopasiParametername_iterator
 
- Public Types inherited from CCopasiParameter
enum class  eUserInterfaceFlag { editable , basic , unsupported , __SIZE }
 
enum class  Type {
  DOUBLE = 0 , UDOUBLE , INT , UINT ,
  BOOL , GROUP , STRING , CN ,
  KEY , FILE , EXPRESSION , INVALID ,
  __SIZE
}
 
typedef CFlags< eUserInterfaceFlagUserInterfaceFlag
 
- Public Types inherited from CDataContainer
typedef CDataObjectMap objectMap
 
- Public Types inherited from CDataObject
typedef std::set< const CDataObject * > DataObjectSet
 
enum  Flag {
  Container , Vector , Matrix , NameVector ,
  Reference , ValueBool , ValueInt , ValueInt64 ,
  ValueDbl , NonUniqueName , StaticString , ValueString ,
  Separator , DisplayName , ModelEntity , Array ,
  DataModel , Root , Gui , __SIZE
}
 
- Public Types inherited from CObjectInterface
typedef std::vector< const CDataContainer * > ContainerList
 
typedef std::set< const CObjectInterface * > ObjectSet
 
- Static Public Member Functions inherited from CCopasiParameter
static void allocateValidValues (const Type &type, void *&pValidValues)
 
static void allocateValue (const Type &type, void *&pValue)
 
static void assignValue (const Type &type, void *&pValue, const void *pNewValue)
 
static void deleteValidValues (const Type &type, void *&pValidValues)
 
static void deleteValue (const Type &type, void *&pValue)
 
static CCopasiParameterfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataContainer
static CDataContainerfromData (const CData &data, CUndoObjectInterface *pParent)
 
- Static Public Member Functions inherited from CDataObject
static CDataObjectfromData (const CData &data, CUndoObjectInterface *pParent)
 
static void sanitizeObjectName (std::string &name)
 
- Static Public Member Functions inherited from CObjectInterface
static const CDataObjectDataObject (const CObjectInterface *pInterface)
 
static CObjectInterfaceGetObjectFromCN (const ContainerList &listOfContainer, const CCommonName &objName)
 
- Static Public Member Functions inherited from CUndoObjectInterface
template<class CType >
static CType * fromData (const CData &, CUndoObjectInterface *)
 
- Static Public Attributes inherited from CCopasiParameter
static const CEnumAnnotation< std::string, TypeTypeName
 
static const CEnumAnnotation< std::string, TypeXMLType
 
- Static Public Attributes inherited from CDataContainer
static const CObjectInterface::ContainerList EmptyList
 

Detailed Description

Constructor & Destructor Documentation

◆ CILDMMethod() [1/3]

CILDMMethod::CILDMMethod ( )
private

Default constructor.

◆ CILDMMethod() [2/3]

CILDMMethod::CILDMMethod ( const CDataContainer pParent,
const CTaskEnum::Method methodType = CTaskEnum::Method::tssILDM,
const CTaskEnum::Task taskType = CTaskEnum::Task::tssAnalysis 
)

Specific constructor

Parameters
constCDataContainer * pParent
constCTaskEnum::Method & methodType (default: tssILDM)
constCTaskEnum::Task & taskType (default: tssAnalysis)

References createAnnotationsM(), and initializeParameter().

◆ CILDMMethod() [3/3]

CILDMMethod::CILDMMethod ( const CILDMMethod src,
const CDataContainer pParent 
)

Copy constructor.

Parameters
const CILDMMethod &src
constCDataContainer * pParent (default: NULL)

References createAnnotationsM(), and initializeParameter().

◆ ~CILDMMethod()

CILDMMethod::~CILDMMethod ( )
virtual

Destructor.

Member Function Documentation

◆ createAnnotationsM()

void CILDMMethod::createAnnotationsM ( )
virtual

create the CArraAnnotations for every ILDM-tab in the CQTSSAResultSubWidget input for each CArraAnnotations is a seperate CMatrix

Create the CArraAnnotations for every ILDM-tab in the CQTSSAResultSubWidget. Input for each CArraAnnotations is a seperate CMatrix.

Reimplemented from CTSSAMethod.

References CTSSAMethod::mapTableToName, mReacSlowSpacePrint, mTMP1Print, mTMP2Print, mTMP3Print, mVfastSpacePrint, mVslowMetabPrint, mVslowPrint, mVslowSpacePrint, pReacSlowSpacePrintAnn, pTmp1, pTMP1, pTMP1PrintAnn, pTmp2, pTMP2, pTMP2PrintAnn, pTmp3, pTMP3, pTMP3PrintAnn, pTmp4, pTmp5, pVfastSpacePrintAnn, pVslowMetabPrintAnn, pVslowPrintAnn, pVslowSpacePrintAnn, CDataArray::setDescription(), CDataArray::setDimensionDescription(), CDataArray::setMode(), CDataArray::Strings, CTSSAMethod::tableNames, and CDataArray::Vector.

Referenced by CILDMMethod().

◆ deuflhard()

void CILDMMethod::deuflhard ( C_INT slow,
C_INT info 
)
protected

Deuflhard Iteration: Prove Deuflhard criteria, find consistent initial value for DAE output: info - if Deuflhard is satisfied for given slow; transformation matrices mTd and mTdinverse

NEWTON: Looking for consistent initial value for DAE system Output: mCfast, info

References CVectorCore< CType >::array(), C_FLOAT64, C_INT, CTSSAMethod::calculateDerivatives(), CMathContainer::getModel(), CModel::getNumber2QuantityFactor(), max, CTSSAMethod::mCfast, CTSSAMethod::mDim, CTSSAMethod::mDtol, CTSSAMethod::mEPS, CTSSAMethod::mNumber2Concentration, CCopasiMethod::mpContainer, CTSSAMethod::mTd, CTSSAMethod::mTdInverse, CTSSAMethod::mY_initial, newton(), CVector< CType >::resize(), and CMathContainer::updateSimulatedValues().

Referenced by step().

◆ emptyVectors()

void CILDMMethod::emptyVectors ( )

empty every vector to be able to fill them with new values for a new calculation also nullify the step counter

Empty every vector to be able to fill them with new values for a new calculation. Also nullify the step counter.

References CTSSAMethod::mCurrentStep, mVec_mTMP1, mVec_mTMP2, mVec_mTMP3, mVec_mVslow, mVec_mVslowMetab, mVec_mVslowSpace, CTSSAMethod::mVec_SlowModes, and CTSSAMethod::mVec_TimeScale.

Referenced by start().

◆ getReacSlowSpacePrintAnn()

const CDataArray * CILDMMethod::getReacSlowSpacePrintAnn ( ) const

◆ getTMP1PrintAnn()

const CDataArray * CILDMMethod::getTMP1PrintAnn ( ) const

References pTMP1PrintAnn.

◆ getTMP2PrintAnn()

const CDataArray * CILDMMethod::getTMP2PrintAnn ( ) const

References pTMP2PrintAnn.

◆ getTMP3PrintAnn()

const CDataArray * CILDMMethod::getTMP3PrintAnn ( ) const

References pTMP3PrintAnn.

◆ getVfastSpacePrintAnn()

const CDataArray * CILDMMethod::getVfastSpacePrintAnn ( ) const

References pVfastSpacePrintAnn.

◆ getVslowMetabPrintAnn()

const CDataArray * CILDMMethod::getVslowMetabPrintAnn ( ) const

References pVslowMetabPrintAnn.

◆ getVslowPrintAnn()

const CDataArray * CILDMMethod::getVslowPrintAnn ( ) const
Returns
CDataArray for visualization in ILDM-tab in the CQTSSAResultSubWidget

References pVslowPrintAnn.

◆ getVslowSpacePrintAnn()

const CDataArray * CILDMMethod::getVslowSpacePrintAnn ( ) const

References pVslowSpacePrintAnn.

◆ initializeOutput()

void CILDMMethod::initializeOutput ( )
virtual

initialize output for the result elements, this method initializes the output elements so that an output handler can be used afterwards

Reimplemented from CTSSAMethod.

◆ initializeParameter()

◆ newton()

◆ printResult()

void CILDMMethod::printResult ( std::ostream *  ostream) const
virtual

print of the standard report sequence for ILDM Method

Parameters
std::ostream* ostream

Reimplemented from CCopasiMethod.

References C_INT, C_INT32, CModel::getMetabolitesX(), CModelEntity::getModel(), CDataObject::getObjectName(), CModel::getReactions(), CModel::getTimeUnitName(), and CDataVector< CType >::size().

◆ setAnnotationM()

bool CILDMMethod::setAnnotationM ( size_t  step)
virtual

set the every CArrayAnnotation for the requested step set the description of CArayAnnotation for both dimensions

Set the every CArrayAnnotation for the requested step. Set also the description of CArayAnnotation for both dimensions:

  • dimension description could consists of some std::srings some strings contain the Time Scale values for requested step
  • dimension description could consists of arrays of CommonNames

step -= 1; // already done

Implements CTSSAMethod.

References C_INT, CModel::getMetabolitesX(), CMathContainer::getModel(), CMathContainer::getReactions(), CModel::getReactions(), CTSSAMethod::mDim, CCopasiMethod::mpContainer, mReacSlowSpace, mReacSlowSpacePrint, mTMP1Print, mTMP2Print, mTMP3Print, mVec_mReacSlowSpace, mVec_mTMP1, mVec_mTMP2, mVec_mTMP3, mVec_mVfastSpace, mVec_mVslow, mVec_mVslowMetab, mVec_mVslowSpace, CTSSAMethod::mVec_SlowModes, CTSSAMethod::mVec_TimeScale, mVfastSpacePrint, mVslowMetabPrint, mVslowPrint, mVslowSpacePrint, pReacSlowSpacePrintAnn, pTMP1PrintAnn, pTMP2PrintAnn, pTMP3PrintAnn, pVfastSpacePrintAnn, pVslowMetabPrintAnn, pVslowPrintAnn, pVslowSpacePrintAnn, CDataArray::resize(), CMatrix< CType >::resize(), CDataArray::setAnnotationString(), CDataArray::setCopasiVector(), CVectorCore< CType >::size(), and step().

◆ setVectors()

◆ start()

void CILDMMethod::start ( )
virtual

◆ step()

void CILDMMethod::step ( const double &  deltaT)
virtual

This instructs the method to calculate a time step of deltaT starting with the current state, i.e., the result of the previous step. The new state (after deltaT) is expected in the current state. The return value is the actual timestep taken.

Parameters
const double &deltaT

Schur Decomposition of Jacobian (reordered). Output: mQ - transformation matrix mR - block upper triangular matrix (with ordered eigenvalues)

Classical ILDM iterations. The number of slow variables is decreased until the Deuflhard criterion holds

Solution of Sylvester equation for given slow, mQ,mR Output: mTd, mTdinverse and mQz (mQz is used later for newton iterations)

Deuflhard Iteration: Prove Deuflhard criteria, find consistent initial value for DAE output: info - if Deuflhard is satisfied for this slow; transformation matrices mTd and mTdinverse

end of iterations to find the number of slow modes

Schur Decomposition of Jacobian (with another sorting: from fast to slow). Output: mQ_desc - transformation matrix mR_desc - block upper triangular matrix (with ordered eigenvalues)

This part corresponds to the investigation of fast and slow reactions. In development at the moment. To activate the calculations take flag_develop = 0;

Reimplemented from CTSSAMethod.

References CVectorCore< CType >::array(), C_FLOAT64, C_INT, CMathContainer::calculateJacobian(), deuflhard(), CMathContainer::getModel(), CMathContainer::getReactions(), CModel::getRedStoi(), CTSSAMethod::integrationStep(), CTSSAMethod::mat_anal_fast_space(), CTSSAMethod::mat_anal_metab(), CTSSAMethod::mat_anal_mod(), CTSSAMethod::mat_anal_mod_space(), CTSSAMethod::mCfast, MCTSSAMethod, CTSSAMethod::mCurrentStep, CTSSAMethod::mDim, CTSSAMethod::mEPS, CTSSAMethod::mJacobian, CTSSAMethod::mJacobian_initial, CTSSAMethod::mNumber2Concentration, CCopasiMethod::mpContainer, CTSSAMethod::mpContainerStateTime, CTSSAMethod::mpFirstSpecies, CTSSAMethod::mpFirstSpeciesRate, CTSSAMethod::mQ, CTSSAMethod::mQ_desc, CTSSAMethod::mQz, CTSSAMethod::mR, CTSSAMethod::mR_desc, mReacSlowSpace, CTSSAMethod::mSlow, CTSSAMethod::mTd, CTSSAMethod::mTd_save, CTSSAMethod::mTdInverse, CTSSAMethod::mTdInverse_save, mTMP1, mTMP2, mTMP3, CTSSAMethod::mVfast_space, CTSSAMethod::mVslow, CTSSAMethod::mVslow_space, CTSSAMethod::mY_initial, CTSSAMethod::orthog(), CMatrix< CType >::resize(), CVector< CType >::resize(), CTSSAMethod::schur(), CTSSAMethod::schur_desc(), setVectors(), CVectorCore< CType >::size(), CTSSAMethod::sylvester(), CTSSAMethod::updateCurrentTime(), CMathContainer::updateSimulatedValues(), and CCopasiMessage::WARNING.

Referenced by setAnnotationM().

◆ transformation_norm()

void CILDMMethod::transformation_norm ( C_INT slow,
C_INT info 
)
protected

Member Data Documentation

◆ mReacSlowSpace

CVector<C_FLOAT64> CILDMMethod::mReacSlowSpace
protected

vectors contain whole data for all calculation steps

Referenced by setAnnotationM(), setVectors(), and step().

◆ mReacSlowSpacePrint

CMatrix<C_FLOAT64> CILDMMethod::mReacSlowSpacePrint
protected

◆ mTMP1

CMatrix<C_FLOAT64> CILDMMethod::mTMP1
protected

Referenced by setVectors(), and step().

◆ mTMP1Print

CMatrix<C_FLOAT64> CILDMMethod::mTMP1Print
protected

◆ mTMP2

CMatrix<C_FLOAT64> CILDMMethod::mTMP2
protected

Referenced by setVectors(), and step().

◆ mTMP2Print

CMatrix<C_FLOAT64> CILDMMethod::mTMP2Print
protected

◆ mTMP3

CMatrix<C_FLOAT64> CILDMMethod::mTMP3
protected

Referenced by setVectors(), and step().

◆ mTMP3Print

CMatrix<C_FLOAT64> CILDMMethod::mTMP3Print
protected

◆ mVec_mReacSlowSpace

std::vector< CVector<C_FLOAT64> > CILDMMethod::mVec_mReacSlowSpace
protected

Referenced by setAnnotationM(), and setVectors().

◆ mVec_mTMP1

std::vector< CMatrix<C_FLOAT64> > CILDMMethod::mVec_mTMP1
protected

◆ mVec_mTMP2

std::vector< CMatrix<C_FLOAT64> > CILDMMethod::mVec_mTMP2
protected

◆ mVec_mTMP3

std::vector< CMatrix<C_FLOAT64> > CILDMMethod::mVec_mTMP3
protected

◆ mVec_mVfastSpace

std::vector< CVector<C_FLOAT64> > CILDMMethod::mVec_mVfastSpace
protected

Referenced by setAnnotationM(), and setVectors().

◆ mVec_mVslow

std::vector< CMatrix<C_FLOAT64> > CILDMMethod::mVec_mVslow
protected

◆ mVec_mVslowMetab

std::vector< CMatrix<C_FLOAT64> > CILDMMethod::mVec_mVslowMetab
protected

◆ mVec_mVslowSpace

std::vector< CVector<C_FLOAT64> > CILDMMethod::mVec_mVslowSpace
protected

◆ mVfastSpacePrint

CMatrix<C_FLOAT64> CILDMMethod::mVfastSpacePrint
protected

◆ mVslowMetabPrint

CMatrix<C_FLOAT64> CILDMMethod::mVslowMetabPrint
protected

◆ mVslowPrint

CMatrix<C_FLOAT64> CILDMMethod::mVslowPrint
protected

input for every CArraAnnotations contain data for single stepcalculation

Referenced by createAnnotationsM(), and setAnnotationM().

◆ mVslowSpacePrint

CMatrix<C_FLOAT64> CILDMMethod::mVslowSpacePrint
protected

◆ pReacSlowSpacePrintAnn

CDataArray* CILDMMethod::pReacSlowSpacePrintAnn
protected

◆ pTmp1

CDataArray* CILDMMethod::pTmp1
protected

required for creation of above listed CArrayAnnotation

Referenced by createAnnotationsM().

◆ pTMP1

CDataArray* CILDMMethod::pTMP1
protected

Referenced by createAnnotationsM().

◆ pTMP1PrintAnn

CDataArray* CILDMMethod::pTMP1PrintAnn
protected

◆ pTmp2

CDataArray* CILDMMethod::pTmp2
protected

Referenced by createAnnotationsM().

◆ pTMP2

CDataArray* CILDMMethod::pTMP2
protected

Referenced by createAnnotationsM().

◆ pTMP2PrintAnn

CDataArray* CILDMMethod::pTMP2PrintAnn
protected

◆ pTmp3

CDataArray* CILDMMethod::pTmp3
protected

Referenced by createAnnotationsM().

◆ pTMP3

CDataArray* CILDMMethod::pTMP3
protected

Referenced by createAnnotationsM().

◆ pTMP3PrintAnn

CDataArray* CILDMMethod::pTMP3PrintAnn
protected

◆ pTmp4

CDataArray* CILDMMethod::pTmp4
protected

Referenced by createAnnotationsM().

◆ pTmp5

CDataArray* CILDMMethod::pTmp5
protected

Referenced by createAnnotationsM().

◆ pVfastSpacePrintAnn

CDataArray* CILDMMethod::pVfastSpacePrintAnn
protected

◆ pVslowMetabPrintAnn

CDataArray* CILDMMethod::pVslowMetabPrintAnn
protected

◆ pVslowPrintAnn

CDataArray* CILDMMethod::pVslowPrintAnn
protected

CDataArray for every ILDM-tab in the CQTSSAResultSubWidget

Referenced by createAnnotationsM(), getVslowPrintAnn(), and setAnnotationM().

◆ pVslowSpacePrintAnn

CDataArray* CILDMMethod::pVslowSpacePrintAnn
protected

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