COPASI API
4.40.278
|
#include <CMathContainer.h>
Classes | |
struct | sDiscontinuous |
struct | sSize |
Public Member Functions | |
CMathEvent * | addAnalysisEvent (const CEvent *pDataEvent) |
CMath::Entity< CMathObject > | addAnalysisObject (const CMath::Entity< CDataObject > &dataObjects, const CMath::SimulationType &simulationType, const std::string &infix) |
void | addNoiseInputObject (const CMathObject *pObject) |
void | applyInitialValues () |
void | applyUpdateSequence (const CCore::CUpdateSequence &updateSequence) |
bool | areObjectsConstant (const CObjectInterface::ObjectSet &objects) const |
void | calculateElasticityDependencies (CMatrix< C_INT32 > &elasticityDependencies, const bool &reduced) |
void | calculateJacobian (CMatrix< C_FLOAT64 > &jacobian, const C_FLOAT64 &derivationFactor, const bool &reduced, const bool &includeTime=false) |
void | calculateJacobianDependencies (CMatrix< C_INT32 > &jacobianDependencies, const bool &reduced) |
void | calculateRootDerivatives (CVector< C_FLOAT64 > &rootDerivatives) |
CMathContainer (CModel &model) | |
CMathContainer (const CMathContainer &src) | |
void | compile () |
CMathContainer * | copy () const |
CEvaluationNode * | copyBranch (const CEvaluationNode *pSrc, const bool &replaceDiscontinuousNodes) |
CEvaluationNode * | copyBranch (const CEvaluationNode *pSrc, const CMath::Variables< CEvaluationNode * > &variables, const bool &replaceDiscontinuousNodes) |
void | deregisterUpdateSequence (CMathUpdateSequence *pUpdateSequence) |
void | fetchInitialState () |
void | fetchState () |
const CCore::CUpdateSequence & | getApplyInitialValuesSequence () const |
virtual CCommonName | getCN () const |
CMathObject * | getCompartment (const CMathObject *pObject) const |
const CVectorCore< C_FLOAT64 > & | getCompleteInitialState () const |
const size_t & | getCountAssignments () const |
const size_t & | getCountDependentSpecies () const |
const size_t & | getCountFixed () const |
const size_t & | getCountFixedEventTargets () const |
size_t | getCountIndependentSpecies () const |
size_t | getCountNoise () const |
size_t | getCountODEs () const |
CDataObject * | getDataObject (const C_FLOAT64 *pDataValue) const |
const CVectorCore< C_FLOAT64 > & | getDelayLags () const |
const CVectorCore< CMathEvent > & | getEvents () const |
const CVectorCore< C_FLOAT64 > & | getFluxes () const |
const CMathHistoryCore & | getHistory (const bool &reduced) const |
const CMathDependencyGraph & | getInitialDependencies () const |
CVectorCore< C_FLOAT64 > & | getInitialState () |
const CVectorCore< C_FLOAT64 > & | getInitialState () const |
const CObjectInterface::ObjectSet & | getInitialStateObjects () const |
CMathObject * | getInitialValueObject (const CMathObject *pObject) const |
C_FLOAT64 * | getInitialValuePointer (const C_FLOAT64 *pValue) const |
CMathObject * | getLargestReactionCompartment (const CMathReaction *pReaction) const |
CMathObject * | getMathObject (const C_FLOAT64 *pDataValue) const |
CMathObject * | getMathObject (const CCommonName &cn) const |
CMathObject * | getMathObject (const CObjectInterface *pObject) const |
CMathReaction * | getMathReaction (const CReaction *pReaction) const |
const CModel & | getModel () const |
const CVectorCore< C_FLOAT64 > & | getNoise (const bool &reduced) const |
const CObjectInterface::ObjectSet & | getNoiseInputObjects () const |
const CCore::CUpdateSequence & | getNoiseSequence (const bool &useMoieties) const |
virtual const CObjectInterface * | getObject (const CCommonName &cn) const |
virtual const CObjectInterface * | getObjectFromCN (const CCommonName &cn) const |
const CVectorCore< C_FLOAT64 > & | getParticleFluxes () const |
CMathEventQueue & | getProcessQueue () |
C_FLOAT64 | getProcessQueueExecutionTime () const |
const CVectorCore< C_FLOAT64 > & | getPropensities () const |
const C_FLOAT64 & | getQuantity2NumberFactor () const |
const CObjectInterface * | getQuantity2NumberFactorObject () const |
CRandom & | getRandomGenerator () const |
const CDataObject * | getRandomObject () const |
const CVectorCore< C_FLOAT64 > & | getRate (const bool &reduced) const |
CVectorCore< CMathReaction > & | getReactions () |
const CVectorCore< CMathReaction > & | getReactions () const |
const CVectorCore< bool > & | getRootIsDiscrete () const |
const CVectorCore< bool > & | getRootIsTimeDependent () const |
CVector< CMathEvent::CTrigger::CRootProcessor * > & | getRootProcessors () |
const CVectorCore< C_FLOAT64 > & | getRoots () const |
const CObjectInterface::ObjectSet & | getSimulationUpToDateObjects () const |
const CCore::CUpdateSequence & | getSimulationValuesSequence (const bool &useMoieties) const |
const CVectorCore< C_FLOAT64 > & | getState (const bool &reduced) const |
const CObjectInterface::ObjectSet & | getStateObjects (const bool &reduced=false) const |
const CMatrix< C_FLOAT64 > & | getStoichiometry (const bool &reduced=false) const |
const CCore::CUpdateSequence & | getSynchronizeInitialValuesSequence (const CCore::Framework &framework) const |
const CVectorCore< C_FLOAT64 > & | getTotalMasses () const |
const CCore::CUpdateSequence & | getTransientDataValueSequence () const |
const CMathDependencyGraph & | getTransientDependencies () const |
const CObjectInterface::ObjectSet & | getValueChangeProhibited () const |
CMathObject * | getValueObject (const CMathObject *pInitialObject) const |
C_FLOAT64 * | getValuePointer (const C_FLOAT64 *pInitialValue) const |
CVectorCore< C_FLOAT64 > & | getValues () |
const CVectorCore< C_FLOAT64 > & | getValues () const |
CVector< C_FLOAT64 > | initializeAtolVector (const C_FLOAT64 &baseTolerance, const bool &reduced) const |
const bool & | isAutonomous () const |
bool | isStateValid () const |
bool | operator== (const CMathContainer &rhs) |
CMath::StateChange | processQueue (const bool &equality) |
void | processRoots (const bool &equality, const CVector< C_INT > &rootsFound) |
void | processRoots (const CVector< C_INT > &rootsFound) |
void | pushAllTransientValues () |
void | pushInitialState () |
void | pushState () |
void | registerUpdateSequence (CMathUpdateSequence *pUpdateSequence) |
void | relocateObject (CMathObject *&pObject, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateObject (CObjectInterface *&pObject, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateObject (const CMathObject *&pObject, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateObject (const CObjectInterface *&pObject, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateObjectSet (CObjectInterface::ObjectSet &objectSet, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateUpdateSequence (CCore::CUpdateSequence &sequence, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateValue (C_FLOAT64 *&pValue, const std::vector< CMath::sRelocate > &relocations) const |
void | relocateValue (const C_FLOAT64 *&pValue, const std::vector< CMath::sRelocate > &relocations) const |
bool | removeAnalysisEvent (CMathEvent *&pMathEvent) |
bool | removeAnalysisObject (CMath::Entity< CMathObject > &mathObjects) |
void | removeDataObject (const CDataObject *pObject) |
CEvaluationNode * | replaceDiscontinuousNode (const CEvaluationNode *pSrc, const std::vector< CEvaluationNode * > &children) |
void | resetNoise () |
void | setCompleteInitialState (const CVectorCore< C_FLOAT64 > &initialState) |
void | setHistory (const CMathHistoryCore &history) |
void | setInitialState (const CVectorCore< C_FLOAT64 > &initialState) |
void | setState (const CVectorCore< C_FLOAT64 > &state) |
void | setValues (const CVectorCore< C_FLOAT64 > &values) |
void | updateHistoryValues (const bool &useMoieties) |
void | updateInitialValues (const CCore::Framework &framework) |
void | updateNoiseValues (const bool &useMoieties) |
void | updatePriorityValues () |
void | updateRootValues (const bool &useMoieties) |
void | updateSimulatedValues (const bool &useMoieties) |
void | updateTransientDataValues () |
virtual | ~CMathContainer () |
Public Member Functions inherited from CDataContainer | |
virtual bool | add (CDataObject *pObject, const bool &adopt=true) |
virtual bool | appendDeletedDependentData (CUndoData &undoData) const |
virtual bool | applyData (const CData &data, CUndoData::CChangeSet &changes) override |
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 void | createUndoData (CUndoData &undoData, const CUndoData::Type &type, const CData &oldData=CData(), const CCore::Framework &framework=CCore::Framework::ParticleNumbers) const override |
virtual std::string | getChildObjectUnits (const CDataObject *pObject) const |
void | getDescendants (CDataObject::DataObjectSet &descendants, const bool &recursive=false) const |
virtual size_t | getIndex (const CDataObject *pObject) const |
virtual objectMap & | getObjects () |
virtual const objectMap & | getObjects () const |
virtual const std::string | getUnits () const override |
virtual const CDataObject * | getValueObject () const override |
virtual CUndoObjectInterface * | insert (const CData &data) override |
void | objectRenamed (CDataObject *pObject, const std::string &oldName) |
virtual bool | remove (CDataObject *pObject) |
virtual CData | toData () const override |
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 CDataObject * | getDataObject () const override |
virtual const std::string & | getKey () const |
CDataContainer * | getObjectAncestor (const std::string &type) const |
CDataModel * | getObjectDataModel () const |
virtual std::string | getObjectDisplayName () const override |
const CObjectInterface * | getObjectFromCN (const CCommonName &cn) const |
const std::string & | getObjectName () const |
CDataContainer * | getObjectParent () const |
const std::string & | getObjectType () const |
virtual const CObjectInterface::ObjectSet & | getPrerequisites () const override |
virtual const CValidity & | getValidity () const override |
virtual void * | getValuePointer () 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 |
virtual void | print (std::ostream *ostream) const override |
void | removeIssue (const CIssue &issue) |
void | removeReference (const CDataContainer *pReference) |
bool | setObjectName (const std::string &name) |
virtual bool | setObjectParent (const CDataContainer *pParent) |
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 void | updateIndex (const size_t &index, const CUndoObjectInterface *pUndoObject) |
virtual | ~CUndoObjectInterface () |
Static Private Member Functions | |
static void | createRelocation (const size_t &oldSize, const size_t &newSize, CMath::sRelocate &relocate, std::vector< CMath::sRelocate > &relocations, const bool &modifiedAtEnd=true) |
static CMath::EntityType | getEntityType (const CModelEntity *pEntity) |
Additional Inherited Members | |
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 CDataContainer | |
static CDataContainer * | fromData (const CData &data, CUndoObjectInterface *pParent) |
Static Public Member Functions inherited from CDataObject | |
static CDataObject * | fromData (const CData &data, CUndoObjectInterface *pParent) |
static void | sanitizeObjectName (std::string &name) |
Static Public Member Functions inherited from CObjectInterface | |
static const CDataObject * | DataObject (const CObjectInterface *pInterface) |
static CObjectInterface * | GetObjectFromCN (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 CDataContainer | |
static const CObjectInterface::ContainerList | EmptyList |
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 inherited from CDataContainer | |
objectMap | mObjects |
Protected Attributes inherited from CDataObject | |
ObjectSet | mPrerequisits |
std::set< CDataContainer * > | mReferences |
Protected Attributes inherited from CObjectInterface | |
CValidity | mValidity |
|
private |
Default Constructor
Referenced by copy().
CMathContainer::CMathContainer | ( | const CMathContainer & | src | ) |
Copy constructor
const | CMathContainer & src |
|
virtual |
Destructor
References CVectorCore< CType >::array(), deregisterUpdateSequence(), mDelays, mEvents, mpObjectsBuffer, mpProcessQueue, mpRandomGenerator, mpValuesBuffer, mReactions, mUpdateSequences, pdelete, pdeletev, and CDataObject::setObjectParent().
CMathEvent * CMathContainer::addAnalysisEvent | ( | const CEvent * | pDataEvent | ) |
Add an event to the container. The dataEvent must remain in memory while in the math container.
const | CEvent * pDataEvent |
References CMathDependencyGraph::addObject(), CMathEvent::allocate(), analyzeRoots(), CVectorCore< CType >::array(), CMathEvent::compile(), createUpdateSequences(), finishResize(), CMathEvent::getAssignments(), getMathObject(), CMathEvent::CTrigger::getRoots(), CMathEvent::CAssignment::getTarget(), CMathEvent::getTrigger(), CMathEvent::initialize(), initializePointers(), map(), mEvents, mExtensiveRates, mExtensiveValues, mInitialDependencies, mInitialExtensiveRates, mInitialExtensiveValues, mObjects, mSize, mTransientDependencies, mValues, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMath::sRelocate::offset, CMath::sPointers::pEventAssignments, CMath::sPointers::pEventAssignmentsObject, CMath::sPointers::pEventDelays, CMath::sPointers::pEventDelaysObject, CMath::sPointers::pEventPriorities, CMath::sPointers::pEventPrioritiesObject, CMath::sPointers::pEventRoots, CMath::sPointers::pEventRootsObject, CMath::sPointers::pEventRootStates, CMath::sPointers::pEventRootStatesObject, CMath::sPointers::pEventTriggers, CMath::sPointers::pEventTriggersObject, CMath::sPointers::pInitialEventTriggers, CMath::sPointers::pInitialEventTriggersObject, CMath::sRelocate::pNewObject, CMath::sRelocate::pNewValue, CMath::sRelocate::pObjectEnd, CMath::sRelocate::pObjectStart, CMath::sRelocate::pOldObject, CMath::sRelocate::pOldValue, CMath::sRelocate::pValueEnd, CMath::sRelocate::pValueStart, relocate(), and resize().
Referenced by CAnalyticsTask::createEvent(), and CCrossSectionTask::createEvent().
CMath::Entity< CMathObject > CMathContainer::addAnalysisObject | ( | const CMath::Entity< CDataObject > & | dataObjects, |
const CMath::SimulationType & | simulationType, | ||
const std::string & | infix | ||
) |
Add an entity to the container const const CMath::Entity< CDataObject > & dataObjects const const CMath::SimulationType & simulationType const const std::string & infix
References CMath::__SIZE, CMathDependencyGraph::addObject(), CMath::Analysis, CVectorCore< CType >::array(), CMath::Assignment, C_FLOAT64, CMathObject::compile(), CMath::Conversion, CMathExpression::convertToInitialExpression(), copyBranch(), createUpdateSequences(), CMath::Dependent, CMath::EventTarget, fatalError, finishResize(), CMath::Fixed, CMathObject::getEntityType(), CEvaluationTree::getRoot(), CMathObject::getSimulationType(), CMathObject::getValuePointer(), CMathObject::getValueType(), CMath::Independent, CMathObject::initialize(), CMath::Entity< CType >::InitialRate, CMath::Entity< CType >::InitialValue, map(), mInitialDependencies, mObjects, mSize, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nFixed, CMathContainer::sSize::nODE, CMath::ODE, CMath::Entity< CType >::Rate, CMath::Rate, resize(), CMathObject::setExpressionPtr(), CExpression::setInfix(), CVectorCore< CType >::size(), CMath::Time, CMath::Undefined, CMath::Entity< CType >::Value, and CMath::Value.
void CMathContainer::addNoiseInputObject | ( | const CMathObject * | pObject | ) |
Add a noise input object
const | CMathObject * pObject |
References mNoiseInputObjects.
Referenced by CMathObject::compileNoise(), and CMathObject::compileReactionParticleNoise().
|
private |
Allocate the memory for objects and values
References CObjectLists::ALL_LOCAL_PARAMETER_VALUES, CMathEvent::allocate(), CVectorCore< CType >::array(), CModelEntity::ASSIGNMENT, CDataVector< CType >::begin(), CStateTemplate::beginFixed(), CMathDependencyGraph::clear(), CMathUpdateSequence::clear(), createDiscontinuityEvents(), CDataVector< CType >::end(), CStateTemplate::endFixed(), finishResize(), CMathEvent::getAssignments(), CModel::getEvents(), CObjectLists::getEventTargets(), CObjectLists::getListOfConstObjects(), CModel::getMoieties(), CStateTemplate::getNumDependent(), CModel::getNumDependentReactionMetabs(), CStateTemplate::getNumFixed(), CStateTemplate::getNumIndependent(), CModel::getNumIndependentReactionMetabs(), CModel::getNumMetabs(), CModel::getNumODEMetabs(), CModel::getReactions(), CMathEvent::CTrigger::getRoots(), CModel::getStateTemplate(), CMathEvent::getTrigger(), CVectorCore< CType >::initialize(), mApplyInitialValuesSequence, mDataObject2MathObject, mDataValue2DataObject, mDataValue2MathObject, mDelays, mDiscontinuityEvents, mEvents, mInitialDependencies, mInitialStateValueAll, mInitialStateValueExtensive, mInitialStateValueIntensive, mNoiseSequence, mNoiseSequenceReduced, mObjects, mpModel, mPrioritySequence, mReactions, mReducedStateValues, mRootCount2Events, mSimulationRequiredValues, mSimulationValuesSequence, mSimulationValuesSequenceReduced, mSize, mStateValues, mSynchronizeInitialValuesSequenceExtensive, mSynchronizeInitialValuesSequenceIntensive, mTransientDataObjectSequence, mTransientDependencies, mUpdateSequences, mValues, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nIntensiveValues, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactions, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMathContainer::sSize::pObject, CMathContainer::sSize::pValue, resize(), and CDataVector< CType >::size().
Referenced by compile().
|
private |
Analyze the number and type of roots, i.e., which roots are only changed during discrete event processing.
References CVectorCore< CType >::array(), C_FLOAT64, CCore::Default, CMathUpdateSequence::empty(), CMathObject::getExpressionPtr(), getMathObject(), CMathEvent::CTrigger::getRoots(), CMathEvent::getTrigger(), CMathDependencyGraph::getUpdateSequence(), CVectorCore< CType >::initialize(), CMathEvent::isDisabled(), mEventRoots, mEventRootStates, mEvents, CMathEvent::CTrigger::CRootProcessor::mpRoot, mRootDerivatives, mRootDerivativesState, mRootIsDiscrete, mRootIsTimeDependent, mRootProcessors, mSize, mState, mTransientDependencies, CMathContainer::sSize::nFixedEventTargets, CVector< CType >::resize(), and CVectorCore< CType >::size().
Referenced by addAnalysisEvent(), compile(), and removeAnalysisEvent().
void CMathContainer::applyInitialValues | ( | ) |
Set the transient values to the initial values and calculate all dependent values. Please call updateInitialValues before calling this method to assure that all values are up to date.
References applyUpdateSequence(), CVectorCore< CType >::array(), C_FLOAT64, C_INT, calculateRootDerivatives(), CMathObject::calculateValue(), CMathEvent::fire(), CMathEvent::fireAtInitialTime(), getMathObject(), mApplyInitialValuesSequence, mEventRoots, mEvents, mEventTriggers, mExtensiveValues, mInitialExtensiveValues, mpProcessQueue, mRootDerivatives, mRootDerivativesState, mRootProcessors, mState, mValues, processRoots(), CMathEvent::removePendingAction(), CVectorCore< CType >::size(), and CMathEventQueue::start().
Referenced by CModel::applyInitialValues(), CSensMethod::do_target_calculation(), CLyapTask::process(), CScanTask::process(), CSensTask::process(), CLNATask::process(), CMCATask::process(), CSteadyStateTask::process(), CTimeSensTask::processStart(), CTrajectoryTask::processStart(), and CTSSATask::processStart().
void CMathContainer::applyUpdateSequence | ( | const CCore::CUpdateSequence & | updateSequence | ) |
Apply the given update sequence to the mathematical objects in the container
const | CCore::CUpdateSequence & updateSequence |
References CMathUpdateSequence::begin(), CObjectInterface::calculateValue(), and CMathUpdateSequence::end().
Referenced by COptProblem::adjustStartValue(), applyInitialValues(), ResultData::applyToModelStateFromOptTask(), COptProblem::calculate(), CScanMethod::calculate(), CFitProblem::calculate(), CTimeSensMethod::calculate_dAssignments_dPar(), CTimeSensMethod::calculate_dAssignments_dState(), CTimeSensMethod::calculate_dRate_dPar(), CFitProblem::calculateCrossValidation(), CMathDelay::calculateDelayValues(), COptProblem::calculateStatistics(), COptProblem::checkFunctionalConstraints(), COptProblem::checkIntervals(), CFitProblem::createParameterSets(), CSensMethod::do_target_calculation(), CTrajAdaptiveSA::doSingleSSAStep(), CStochDirectMethod::doSingleStep(), CStochNextReactionMethod::doSingleStep(), CHybridMethodODE45::evalF(), COptProblem::evalMinimizeIntervals(), CStochasticRungeKuttaRI5::evalNoise(), CTrajectoryMethodDsaLsodar::fireReaction(), CMathEvent::getCalculationTime(), CMathEvent::getExecutionTime(), CMathEvent::getTargetValues(), COptProblem::restore(), CFitProblem::restore(), CStochDirectMethod::rootValue(), CMathEvent::setTargetValues(), CExperiment::storeExtendedTimeSeriesData(), CExperiment::sumOfSquares(), CExperiment::sumOfSquaresStore(), CNewtonMethod::targetFunction(), updateInitialValues(), CModel::updateInitialValues(), CExperiment::updateModelWithIndependentData(), updateNoiseValues(), CHybridMethod::updatePriorityQueue(), updatePriorityValues(), updateRootValues(), updateSimulatedValues(), and updateTransientDataValues().
bool CMathContainer::areObjectsConstant | ( | const CObjectInterface::ObjectSet & | objects | ) | const |
Check whether all objects are constant, i.e., do never change during simulation
const | CObjectInterface::ObjectSet & objects |
References CMathUpdateSequence::empty(), CCore::EventHandling, CMathDependencyGraph::getUpdateSequence(), mStateValues, mTransientDependencies, and CCore::UpdateMoieties.
Referenced by CEvaluationNodeOperator::getUnit().
void CMathContainer::calculateElasticityDependencies | ( | CMatrix< C_INT32 > & | elasticityDependencies, |
const bool & | reduced | ||
) |
Calculates whether matrix elements in the elasticity matrix are identical to zero or not and stored it in the provided matrix. needs to be called before.
CMatrix< | C_FLOAT64 > & elasticityDependencies |
const | bool & reduced |
References CVectorCore< CType >::array(), CMathUpdateSequence::begin(), CCore::Default, CMathUpdateSequence::end(), getMathObject(), getState(), CMathDependencyGraph::getUpdateSequence(), CMathUpdateSequence::insert(), mFluxes, mSize, mState, mTransientDependencies, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nReactions, CMathContainer::sSize::nTime, CMatrix< CType >::resize(), CVectorCore< CType >::size(), and CCore::UseMoieties.
Referenced by CMCAMethod::calculateUnscaledElasticities().
void CMathContainer::calculateJacobian | ( | CMatrix< C_FLOAT64 > & | jacobian, |
const C_FLOAT64 & | derivationFactor, | ||
const bool & | reduced, | ||
const bool & | includeTime = false |
||
) |
Calculates the Jacobian of the full model for the current state and stores it in the provided matrix. needs to be called before.
CMatrix< | C_FLOAT64 > & Jacobian |
const | C_FLOAT64 & derivationFactor, |
const | bool & reduced |
const | bool & includeTime (default: false) |
References CMatrix< CType >::array(), CVectorCore< CType >::array(), C_FLOAT64, getState(), max, mRate, mSize, mState, CMathContainer::sSize::nFixedEventTargets, CMatrix< CType >::resize(), CMatrix< CType >::size(), CVectorCore< CType >::size(), and updateSimulatedValues().
Referenced by CLNAMethod::calculateCovarianceMatrixReduced(), CSteadyStateMethod::calculateJacobian(), CSteadyStateMethod::doJacobian(), CLyapWolfMethod::evalF(), CTimeSensLsodaMethod::evalF(), CCSPMethod::step(), CILDMMethod::step(), CILDMModifiedMethod::step(), and CNewtonMethod::targetFunctionDistance().
void CMathContainer::calculateJacobianDependencies | ( | CMatrix< C_INT32 > & | jacobianDependencies, |
const bool & | reduced | ||
) |
Calculates whether matrix elements in the Jacobian are identical to zero or not and stored it in the provided matrix. needs to be called before.
CMatrix< | C_FLOAT64 > & jacobianDependencies |
const | bool & reduced |
References CVectorCore< CType >::array(), CMathUpdateSequence::begin(), CCore::Default, CMathUpdateSequence::end(), getMathObject(), getState(), CMathDependencyGraph::getUpdateSequence(), CMathUpdateSequence::insert(), mRate, mSize, mState, mTransientDependencies, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nTime, CMatrix< CType >::resize(), CVectorCore< CType >::size(), and CCore::UseMoieties.
Calculate the time derivative of all roots
CVector< | C_FLOAT64 > & rootDerivatives |
References CVectorCore< CType >::array(), calculateRootJacobian(), dgemm::eval(), mRate, mSize, CMathContainer::sSize::nFixedEventTargets, CMatrix< CType >::numCols(), and updateRootValues().
Referenced by applyInitialValues(), CTimeSensLsodaMethod::createRootMask(), CHybridMethodODE45::createRootMask(), CLsodaMethod::createRootMask(), CLsodaMethod2::createRootMask(), CRadau5Method::createRootMask(), and CStochasticRungeKuttaRI5::createRootMask().
Calculate the partial derivative of the root values with respect to the continuous state variables
CMatrix< | C_FLOAT64 > & jacobian |
References CMatrix< CType >::array(), CVectorCore< CType >::array(), C_FLOAT64, mEventRoots, min, mRate, mSize, mState, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMatrix< CType >::resize(), CMatrix< CType >::size(), CVectorCore< CType >::size(), and updateRootValues().
Referenced by calculateRootDerivatives().
|
private |
Calculate the Jacobian for the roots.
CMatrix< | C_FLOAT64 > & jacobian |
const | CVector< C_FLOAT64 > & rates |
void CMathContainer::compile | ( | ) |
Compile the mathematical model
References allocate(), analyzeRoots(), CVectorCore< CType >::array(), CDataVector< CType >::begin(), CDataVector< CType >::clear(), compileEvents(), compileObjects(), createDelays(), createDependencyGraphs(), createUpdateSequences(), CMathDelay::createUpdateSequences(), createValueChangeProhibited(), CCore::DelayValues, CMathUpdateSequence::empty(), CDataVector< CType >::end(), fatalError, getMathObject(), CModel::getReactions(), CMathDependencyGraph::getUpdateSequence(), CMathReaction::initialize(), initializeDiscontinuousCreationPointer(), initializeEvents(), initializeObjects(), initializePointers(), map(), mCompileTime, mDelays, mDelayValues, mDiscontinuityEvents, mDiscontinuityInfix2Object, mObjects, mpModel, mReactions, mRootCount2Events, mTransientDependencies, mTriggerInfix2Event, CCore::ParticleNumbers, CVectorCore< CType >::size(), and updateInitialValues().
Referenced by CModel::compile().
|
private |
Convert nodes which generate discrete changes into events and compiles them.
|
private |
Compile the events
References CVectorCore< CType >::array(), CDataVector< CType >::begin(), CMathEvent::compile(), CDataVector< CType >::end(), CModel::getEvents(), ignoreDiscontinuityEvent(), mCreateDiscontinuousPointer, mDiscontinuityEvents, mEvents, mNumTotalRootsIgnored, mpModel, mRootCount2Events, and CMathContainer::sDiscontinuous::pEvent.
Referenced by compile().
|
private |
Compile the objects
References CVectorCore< CType >::array(), CMathObject::compile(), mNoiseInputObjects, mObjects, and CVectorCore< CType >::size().
Referenced by compile().
CMathContainer * CMathContainer::copy | ( | ) | const |
References CMathContainer().
Referenced by CMathContext::sync().
CEvaluationNode * CMathContainer::copyBranch | ( | const CEvaluationNode * | pSrc, |
const bool & | replaceDiscontinuousNodes | ||
) |
Copy a node and all its children. Nodes are converted to suite the math container, i.e., objects nodes point to math object or numbers, function calls are expanded and discrete nodes are replaced by object node pointing to newly created math objects, which are and targets of automatically generated events.
const | CEvaluationNode * pSrc |
const | bool & replaceDiscontinuousNodes |
Referenced by addAnalysisObject(), CMathExpression::CMathExpression(), CMathEvent::CTrigger::compile(), copyBranch(), and createDiscontinuityEvents().
CEvaluationNode * CMathContainer::copyBranch | ( | const CEvaluationNode * | pSrc, |
const CMath::Variables< CEvaluationNode * > & | variables, | ||
const bool & | replaceDiscontinuousNodes | ||
) |
Copy a node and all its children. Nodes are converted to suite the math container, i.e., objects nodes point to math object or numbers, function calls are expanded and discrete nodes are replaced by object node pointing to newly created math objects, which are and targets of automatically generated events.
const | CEvaluationNode * pSrc |
const | CMath::Variables & variables |
const | bool & replaceDiscontinuousNodes |
References CEvaluationNode::AVOGADRO, C_INVALID_INDEX, CEvaluationNode::CALL, CEvaluationNode::CEIL, CEvaluationNode::CHOICE, CEvaluationNode::CN, CNodeContextIterator< Node, Context >::context(), copyBranch(), CEvaluationNode::copyNode(), createNodeFromObject(), CObjectInterface::DataObject(), CEvaluationNode::DEFAULT, CNodeContextIterator< Node, Context >::end(), CEvaluationNode::EXPRESSION, CEvaluationNode::FLOOR, CEvaluationNode::FUNCTION, CEvaluationNodeCall::getCalledTree(), CEvaluationNodeVariable::getIndex(), getMathObject(), getObject(), CEvaluationNodeObject::getObjectCN(), CEvaluationNodeObject::getObjectInterfacePtr(), CEvaluationNodeObject::getObjectValuePtr(), CEvaluationTree::getRoot(), CEvaluationNode::IF, CEvaluationNode::MODULUS, mpAvogadro, CEvaluationNode::NaN, CNodeContextIterator< Node, Context >::next(), CEvaluationNode::OBJECT, CEvaluationNode::OPERATOR, CNodeContextIterator< Node, Context >::parentContextPtr(), CEvaluationNode::POINTER, CEvaluationNode::REMAINDER, replaceDiscontinuousNode(), and CEvaluationNode::VARIABLE.
|
private |
Create the update sequence used when applying the initial state
References CMath::__SIZE, CVectorCore< CType >::array(), CMath::Assignment, CMathUpdateSequence::begin(), CMath::Conversion, CCore::Default, CMath::Dependent, CMath::Discontinuous, CMathUpdateSequence::end(), CMath::EventTarget, CMath::Fixed, CMathObject::getEntityType(), getMathObject(), CMathObject::getSimulationType(), CMathDependencyGraph::getUpdateSequence(), CMathObject::getValueType(), CMath::Independent, CMathUpdateSequence::insert(), CMathObject::isIntensiveProperty(), mApplyInitialValuesSequence, mDiscontinuous, mExtensiveValues, mInitialStateValueExtensive, mObjects, mTransientDependencies, CMath::ODE, CVectorCore< CType >::size(), CMath::Species, CMath::Time, and CMath::Value.
Referenced by createUpdateSequences().
|
private |
Create all delays
References CMathDelay::addValueObject(), CMathObject::appendDelays(), CVectorCore< CType >::array(), C_FLOAT64, CMathDelay::create(), CMath::Delay, CMath::DelayLag, CMath::DelayValue, finishResize(), CEvaluationTree::getInfix(), getMathObject(), CMathObject::initialize(), map(), mDelayLags, mDelays, mDelayValues, mExtensiveValues, mHistory, mObjects, CMathDelay::modifyMathObject(), mSize, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathExpression::relocate(), relocateObject(), CMathHistory::resize(), resize(), CEvaluationTree::setInfix(), CVectorCore< CType >::size(), and CMath::Undefined.
Referenced by compile().
|
private |
Create Dependency Graphs
References CMathDependencyGraph::addObject(), CVectorCore< CType >::array(), CMathDependencyGraph::clear(), CMathDependencyGraph::exportDOTFormat(), mExtensiveValues, mInitialDependencies, mInitialExtensiveValues, mObjects, mTransientDependencies, and CVectorCore< CType >::size().
Referenced by compile().
|
private |
Create an event of type CEvent::Discontinuity for the given node
const | CEvaluationNode * pNode |
References CDataVector< CType >::add(), createDiscontinuityTriggerInfix(), CEvent::Discontinuity, mDiscontinuityEvents, CEvent::setTriggerExpression(), and CEvent::setType().
Referenced by createDiscontinuityEvents().
|
private |
Create an event of type CEvent::Discontinuity for each discontinuity in the model
References CModel::getTreesWithDiscontinuities(), mpModel, and CEvaluationNode::NaN.
Referenced by allocate().
|
private |
Create an event of type CEvent::Discontinuity for each discontinuity the tree with root pNode
const | CEvaluationTree * pTree |
const | std::vector< CEvaluationNode * > & variables |
References CEvaluationNode::CALL, CEvaluationNode::CEIL, CEvaluationNode::CHOICE, copyBranch(), createDiscontinuityDataEvent(), CEvaluationNode::DEFAULT, CNodeContextIterator< Node, Context >::end(), CEvaluationNode::EXPRESSION, fatalError, CEvaluationNode::FLOOR, CEvaluationNode::FUNCTION, CEvaluationTree::getRoot(), CEvaluationNode::IF, CEvaluationNode::MODULUS, CNodeContextIterator< Node, Context >::next(), CEvaluationNode::OPERATOR, pdelete, CEvaluationNode::REMAINDER, and CEvaluationNode::VARIABLE.
|
private |
Create the infix for trigger of the event which tracks changes in a discontinuity represented by the node.
const | CEvaluationNode * pNode |
References CEvaluationNode::CEIL, CEvaluationNode::CHOICE, fatalError, CEvaluationNode::FLOOR, CEvaluationNode::FUNCTION, CCopasiNode< _Data >::getChild(), CEvaluationNode::IF, CEvaluationNode::mainType(), CEvaluationNode::MODULUS, CEvaluationNode::OPERATOR, CEvaluationNode::REMAINDER, and CEvaluationNode::subType().
Referenced by createDiscontinuityDataEvent(), and replaceDiscontinuousNode().
|
private |
Create a node based on the given pointer to the math object
const | CObjectInterface * pMathObject |
References C_FLOAT64, CObjectInterface::getDataObject(), CObjectInterface::getValuePointer(), mDataValue2DataObject, and CEvaluationNode::NaN.
Referenced by copyBranch().
|
private |
Create a node based on the given pointer to a data value
const | C_FLOAT64 * pDataValue |
References C_FLOAT64, getMathObject(), CMathObject::getValuePointer(), and CEvaluationNode::NaN.
|
staticprivate |
Modify the current relocation information based on old and new sizes. If appropriate append the relocation information to the vector of relocations. The size modification can appear at the beginning or the end of the current section.
const | size_t & oldSize |
const | size_t & newSize |
CMath::sRelocate | & currentRelocation |
std::vector< | CMath::sRelocate > & relocations |
const | bool & modifiedAtEnd (Default: true) |
References min, CMath::sRelocate::offset, CMath::sRelocate::pObjectEnd, CMath::sRelocate::pObjectStart, CMath::sRelocate::pValueEnd, and CMath::sRelocate::pValueStart.
Referenced by createRelocations(), and ignoreDiscontinuityEvent().
|
private |
Create relocation information
const | sSize & size |
std::vector< | CMath::sRelocate > & Relocations |
References createRelocation(), mSize, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nIntensiveValues, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactions, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMath::sRelocate::offset, CMath::sRelocate::pNewObject, CMath::sRelocate::pNewValue, CMathContainer::sSize::pObject, CMath::sRelocate::pObjectEnd, CMath::sRelocate::pObjectStart, CMath::sRelocate::pOldObject, CMath::sRelocate::pOldValue, CMathContainer::sSize::pValue, CMath::sRelocate::pValueEnd, and CMath::sRelocate::pValueStart.
Referenced by move().
|
private |
Create the update sequences needed to synchronize the initial values
References CMath::__SIZE, CVectorCore< CType >::array(), CMath::Assignment, CMath::Conversion, CMath::Dependent, CMath::EventTarget, CMath::Fixed, CMathObject::getCorrespondingProperty(), CMathObject::getEntityType(), getMathObject(), CMathObject::getPrerequisites(), CMathObject::getSimulationType(), CMathDependencyGraph::getUpdateSequence(), CMathObject::getValueType(), CMath::Independent, CMathObject::isIntensiveProperty(), mDataValue2DataObject, mExtensiveValues, mInitialDependencies, mInitialStateValueAll, mInitialStateValueExtensive, mInitialStateValueIntensive, mObjects, mpAvogadro, mpQuantity2NumberFactor, mSynchronizeInitialValuesSequenceExtensive, mSynchronizeInitialValuesSequenceIntensive, mValueChangeProhibited, CMath::ODE, CMath::Species, CMath::Time, CCore::UpdateMoieties, and CMath::Value.
Referenced by createUpdateSequences().
|
private |
Create the update sequences used to calculate all transient data values
References CVectorCore< CType >::array(), CCore::Default, CMathObject::getDataObject(), CMathDependencyGraph::getUpdateSequence(), mExtensiveValues, mObjects, mSimulationRequiredValues, mStateValues, mTransientDataObjectSequence, mTransientDependencies, mValues, and CVectorCore< CType >::size().
Referenced by createUpdateSequences().
|
private |
Create Update Sequences
References CVectorCore< CType >::array(), createApplyInitialValuesSequence(), createSynchronizeInitialValuesSequence(), createUpdateAllTransientDataValuesSequence(), CMathEvent::createUpdateSequences(), createUpdateSimulationValuesSequence(), mEvents, sanitizeDataValue2DataObject(), and CVectorCore< CType >::size().
Referenced by addAnalysisEvent(), addAnalysisObject(), compile(), removeAnalysisEvent(), and removeAnalysisObject().
|
private |
Create the update sequences used to calculate all values required for simulation
References CMathDependencyGraph::appendAllDependents(), CVectorCore< CType >::array(), CCore::Default, CMath::Dependent, CMath::EventTarget, getMathObject(), CMathObject::getSimulationType(), CMathDependencyGraph::getUpdateSequence(), CMath::Independent, mDelayLags, mEventDelays, mEventPriorities, mEventRoots, mEventRootStates, mExtensiveNoise, mExtensiveRates, mExtensiveValues, mIsAutonomous, mNoiseSequence, mNoiseSequenceReduced, mObjects, mPrioritySequence, mReducedStateValues, mRootSequence, mRootSequenceReduced, mSimulationRequiredValues, mSimulationValuesSequence, mSimulationValuesSequenceReduced, mSize, mState, mStateValues, mTransientDependencies, mValueChangeProhibited, mValues, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMath::ODE, CVectorCore< CType >::size(), CMath::Time, and CCore::UseMoieties.
Referenced by createUpdateSequences().
|
private |
Create the set of object for which the initial value change is prohibited
References CVectorCore< CType >::array(), CDataVector< CType >::begin(), CCore::Default, CDataVector< CType >::end(), CModel::getCompartments(), CMathObject::getCompartmentValue(), CMathObject::getCorrespondingProperty(), CMathObject::getEntityType(), getMathObject(), CMathObject::getValueType(), CMathDependencyGraph::hasCircularDependencies(), mExtensiveRates, mExtensiveValues, mInitialDependencies, mInitialExtensiveRates, mObjects, mpModel, mTransientDependencies, mValueChangeProhibited, CMathDependencyGraph::removePrerequisite(), CMath::Species, CCore::UpdateMoieties, and CMath::Value.
Referenced by compile().
void CMathContainer::deregisterUpdateSequence | ( | CMathUpdateSequence * | pUpdateSequence | ) |
Deregister and update sequence.
CMathUpdateSequence | * pUpdateSeqeunce |
References mUpdateSequences, and CMathUpdateSequence::setMathContainer().
Referenced by CMathUpdateSequence::setMathContainer(), ~CMathContainer(), and CMathUpdateSequence::~CMathUpdateSequence().
void CMathContainer::fetchInitialState | ( | ) |
Fetch the initial state from the associated model
References CVectorCore< CType >::array(), CMath::Assignment, C_FLOAT64, CMathObject::getDataObject(), CMathObject::getSimulationType(), CDataObject::getValuePointer(), mInitialState, mObjects, and CVectorCore< CType >::size().
Referenced by CModel::applyInitialValues(), CModel::compile(), and CModel::updateInitialValues().
void CMathContainer::fetchState | ( | ) |
Fetch the state from the associated model
References CVectorCore< CType >::begin(), C_FLOAT64, CVectorCore< CType >::end(), CMathObject::getDataObject(), getMathObject(), CDataObject::getValuePointer(), and mState.
Referenced by CModel::stateToIntialState().
|
private |
Complete resize and release temporary objects
References CVectorCore< CType >::array(), CVectorCore< CType >::initialize(), mObjects, mOldObjects, mOldValues, and mValues.
Referenced by addAnalysisEvent(), addAnalysisObject(), allocate(), createDelays(), removeAnalysisEvent(), and removeAnalysisObject().
const CCore::CUpdateSequence & CMathContainer::getApplyInitialValuesSequence | ( | ) | const |
Retrieve the sequence for applying the initial values to the transient values.
References mApplyInitialValuesSequence.
|
virtual |
Retrieve the CN of the math container The math container provides values for the numerical values of model objects. For the CN mechanism to work properly it has to pretend to be the model.
Reimplemented from CDataObject.
References CDataObject::getCN(), and mpModel.
CMathObject * CMathContainer::getCompartment | ( | const CMathObject * | pObject | ) | const |
Retrieve the pointer to the compartment of a species related object otherwise NULL
const | CMathObject * pObject CMathObject * pCompartment |
References CMetab::getCompartment(), CMathObject::getDataObject(), CMathObject::getEntityType(), getMathObject(), CDataObject::getObjectParent(), CModelEntity::getValueReference(), and CMath::Species.
Referenced by getLargestReactionCompartment(), CNewtonMethod::initialize(), and CMCAMethod::scaleMCA().
const CVectorCore< C_FLOAT64 > & CMathContainer::getCompleteInitialState | ( | ) | const |
Retrieves the complete initial state values, i.e., all initial values including all internal values.
References mCompleteInitialState.
Referenced by COptProblem::adjustStartValuesForIntervals(), CFitProblem::calculate(), CFitProblem::calculateCrossValidation(), CFitProblem::createParameterSets(), CFitProblem::initialize(), and CFitProblem::updateInitialState().
const size_t & CMathContainer::getCountAssignments | ( | ) | const |
Retrieve the count of assignments
References mSize, and CMathContainer::sSize::nAssignment.
Referenced by CTimeSeries::compile().
const size_t & CMathContainer::getCountDependentSpecies | ( | ) | const |
Retrieve the count of dependent species
References mSize, and CMathContainer::sSize::nMoieties.
Referenced by CLNAMethod::calculateCovarianceMatrixFull(), CMCAMethod::calculateUnscaledElasticities(), CTimeSeries::compile(), CNewtonMethod::initialize(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CLNAMethod::resizeAllMatrices(), CMCAMethod::resizeAllMatrices(), CMCAMethod::scaleMCA(), CHybridMethod::start(), CHybridMethodODE45::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), CCSPMethod::start(), and CStochDirectMethod::stateChange().
const size_t & CMathContainer::getCountFixed | ( | ) | const |
Retrieve the count of fixed values, i.e., parameters
References mSize, and CMathContainer::sSize::nFixed.
Referenced by CTimeSensMethod::calculate_dInitialState_dPar(), CTimeSeries::compile(), CFitProblem::initialize(), and CCopasiTask::restore().
const size_t & CMathContainer::getCountFixedEventTargets | ( | ) | const |
Retrieve the count of fixed values which are changed through events
References mSize, and CMathContainer::sSize::nFixedEventTargets.
Referenced by CSteadyStateMethod::allPositive(), CTimeSensMethod::calculate_dAssignments_dState(), CTimeSensMethod::calculate_dInitialState_dPar(), CTimeSensMethod::calculate_dRate_dPar(), CLNAMethod::calculateCovarianceMatrixReduced(), CMCAMethod::calculateUnscaledElasticities(), CTimeSeries::compile(), CMathEvent::compile(), CAnalyticsTask::eventCallBack(), CCrossSectionTask::eventCallBack(), CTimeSensLsodaMethod::hasStateChanged(), CLsodaMethod::hasStateChanged(), CRadau5Method::hasStateChanged(), CFitProblem::initialize(), CNewtonMethod::initialize(), CSteadyStateMethod::initialize(), CTSSATask::initialize(), CTimeSensMethod::initResult(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CLyapTask::process(), CSteadyStateTask::process(), CTimeSensTask::processStart(), CTrajectoryTask::processStart(), CAnalyticsTask::relativeDifferenceOfStates(), CCrossSectionTask::relativeDifferenceOfStates(), CCopasiTask::restore(), CMCAMethod::scaleMCA(), CTimeSensMethod::signalMathContainerChanged(), CTimeSensTask::signalMathContainerChanged(), CTrajectoryMethod::signalMathContainerChanged(), CTrajectoryTask::signalMathContainerChanged(), CLyapWolfMethod::start(), CMathEventQueue::start(), CTimeSensLsodaMethod::start(), CHybridMethod::start(), CHybridMethodODE45::start(), CLsodaMethod::start(), CLsodaMethod2::start(), CRadau5Method::start(), CStochasticRungeKuttaRI5::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethod::start(), CTrajectoryMethodDsaLsodar::start(), CTSSAMethod::start(), CTimeSensLsodaMethod::stateChange(), CLsodaMethod::stateChange(), CLsodaMethod2::stateChange(), CRadau5Method::stateChange(), CStochDirectMethod::stateChange(), CTimeSensLsodaMethod::step(), CLsodaMethod::step(), CRadau5Method::step(), and CSteadyStateTask::updateMatrices().
size_t CMathContainer::getCountIndependentSpecies | ( | ) | const |
Retrieve the count of independent species
References mSize, CMathContainer::sSize::nMoieties, and CMathContainer::sSize::nReactionSpecies.
Referenced by CLNAMethod::calculateCovarianceMatrixFull(), CLNAMethod::calculateCovarianceMatrixReduced(), CMCAMethod::calculateUnscaledElasticities(), CTimeSeries::compile(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CLyapMethod::isValidProblem(), CLNAMethod::resizeAllMatrices(), CMCAMethod::resizeAllMatrices(), CMCAMethod::scaleMCA(), CHybridMethod::start(), CHybridMethodODE45::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), CTSSAMethod::start(), and CStochDirectMethod::stateChange().
size_t CMathContainer::getCountNoise | ( | ) | const |
Retrieve the count of noise added to the system
References mNoiseInputObjects.
Referenced by CStochasticRungeKuttaRI5::start().
size_t CMathContainer::getCountODEs | ( | ) | const |
Retrieve the count of values determined by ODEs
References mSize, CMathContainer::sSize::nODE, and CMathContainer::sSize::nODESpecies.
Referenced by CLNAMethod::calculateCovarianceMatrixReduced(), CMCAMethod::calculateUnscaledElasticities(), CTimeSeries::compile(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CLyapMethod::isValidProblem(), CMCAMethod::isValidProblem(), CHybridMethod::isValidProblem(), CStochDirectMethod::isValidProblem(), CStochMethod::isValidProblem(), CTauLeapMethod::isValidProblem(), CTrajAdaptiveSA::isValidProblem(), CMCAMethod::scaleMCA(), CHybridMethod::start(), CHybridMethodODE45::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), CTSSAMethod::start(), and CStochDirectMethod::stateChange().
CDataObject * CMathContainer::getDataObject | ( | const C_FLOAT64 * | pDataValue | ) | const |
Retrieve a pointer to the data object for a data value pointer
const | C_FLOAT64 * pDataValue |
References C_FLOAT64, and mDataValue2DataObject.
Referenced by CEvaluationNodeObject::compile().
const CVectorCore< C_FLOAT64 > & CMathContainer::getDelayLags | ( | ) | const |
Retrieve the vector of delay lags
References mDelayLags.
|
staticprivate |
Determine the entity type of an entity
const | CModelEntity * pEntity |
References CMath::Compartment, CMath::GlobalQuantity, CMath::Species, and CMath::Undefined.
Referenced by initializeMathObjects().
const CVectorCore< CMathEvent > & CMathContainer::getEvents | ( | ) | const |
Retrieve the events
References mEvents.
Referenced by CHybridMethod::isValidProblem(), CStochMethod::isValidProblem(), CTauLeapMethod::isValidProblem(), CTrajAdaptiveSA::isValidProblem(), CTrajectoryMethodDsaLsodar::isValidProblem(), CCopasiMethod::isValidProblem(), and CRadau5Method::start().
const CVectorCore< C_FLOAT64 > & CMathContainer::getFluxes | ( | ) | const |
Retrieve reaction fluxes.
References mFluxes.
Referenced by CHybridMethodODE45::partitionSystem(), and CMCAMethod::scaleMCA().
const CMathHistoryCore & CMathContainer::getHistory | ( | const bool & | reduced | ) | const |
Retrieves the state values, i.e., all values of objects of simulation type EventTarget, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
const | bool & reduced |
References mHistory, and mHistoryReduced.
const CMathDependencyGraph & CMathContainer::getInitialDependencies | ( | ) | const |
Retrieve the initial dependencies
References mInitialDependencies.
Referenced by CModel::appendAllDependents(), CModel::appendDirectDependents(), ResultData::applyToModelStateFromOptTask(), CModel::buildInitialRefreshSequence(), CExperiment::compile(), CScanMethod::init(), COptProblem::initialize(), CFitProblem::initialize(), and CSensMethod::initialize().
CVectorCore< C_FLOAT64 > & CMathContainer::getInitialState | ( | ) |
Retrieves the initial state values, i.e., all initial values of objects of simulation type Fixed, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
References mInitialState.
const CVectorCore< C_FLOAT64 > & CMathContainer::getInitialState | ( | ) | const |
Retrieves the initial state values, i.e., all initial values of objects of simulation type Fixed, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
References mInitialState.
Referenced by CScanMethod::calculate(), CTimeSensMethod::calculate_dInitialState_dPar(), CFitProblem::createParameterSets(), CScanMethod::init(), CFitProblem::initialize(), CCopasiTask::initialize(), and CCopasiTask::restore().
const CObjectInterface::ObjectSet & CMathContainer::getInitialStateObjects | ( | ) | const |
Retrieve the objects which represent the initial state.
References mInitialStateValueAll.
Referenced by ResultData::applyToModelStateFromOptTask(), CModel::buildInitialRefreshSequence(), CExperiment::compile(), CScanMethod::init(), COptProblem::initialize(), CFitProblem::initialize(), and CSensMethod::initialize().
CMathObject * CMathContainer::getInitialValueObject | ( | const CMathObject * | pObject | ) | const |
Retrieve the pointer to the corresponding initial value
const | CMathObject * pObject |
References getInitialValuePointer(), getMathObject(), and CMathObject::getValue().
Referenced by CModel::appendAllDependents(), CMathObject::compileParticleFlux(), and removeDataObject().
Retrieve the pointer to the corresponding initial value
const | C_FLOAT64 * pValue |
References CVectorCore< CType >::array(), C_FLOAT64, CDataObject::getDataObject(), mExtensiveNoise, mExtensiveValues, mInitialExtensiveValues, mValues, and CVectorCore< CType >::size().
Referenced by CMathObject::compile(), CMathObject::compileDependentMass(), CMathObject::compileTotalMass(), CMathObject::createExtensiveReactionNoiseExpression(), CMathObject::createExtensiveReactionRateExpression(), and getInitialValueObject().
CMathObject * CMathContainer::getLargestReactionCompartment | ( | const CMathReaction * | pReaction | ) | const |
Retrieve the size of the largest compartment of the species changed in the reaction
const | CMathReaction * pReaction |
References C_FLOAT64, getCompartment(), CMathReaction::getObjectBalance(), and CMathObject::getValuePointer().
Referenced by CMCAMethod::scaleMCA().
CMathObject * CMathContainer::getMathObject | ( | const C_FLOAT64 * | pDataValue | ) | const |
Retrieve a pointer to the mathematical object for data value pointer
const | C_FLOAT64 * pDataValue |
References CVectorCore< CType >::array(), C_FLOAT64, mDataValue2MathObject, mObjects, mValues, and CVectorCore< CType >::size().
CMathObject * CMathContainer::getMathObject | ( | const CCommonName & | cn | ) | const |
Retrieve a pointer to the mathematical object for the given CN
const | CCommonName & cn |
References getMathObject(), CDataContainer::getObject(), and mpModel.
CMathObject * CMathContainer::getMathObject | ( | const CObjectInterface * | pObject | ) | const |
Retrieve a pointer to the corresponding the mathematical object for the given object if it exists otherwise NULL
const | CObjectInterface * pObject |
References mDataObject2MathObject.
Referenced by addAnalysisEvent(), CSteadyStateMethod::allPositive(), analyzeRoots(), CModel::appendAllDependents(), CModel::appendDirectDependents(), applyInitialValues(), CModel::buildInitialRefreshSequence(), CLNAMethod::calculateCovarianceMatrixReduced(), calculateElasticityDependencies(), calculateJacobianDependencies(), CMCAMethod::calculateUnscaledElasticities(), compile(), CEvaluationNodeObject::compile(), CMathObject::compile(), CTimeSeries::compile(), CMathEvent::CAssignment::compile(), CExperiment::compile(), CMathObject::compileDependentMass(), CMathObject::compileInitialValue(), CMathObject::compileParticleFlux(), CMathObject::compilePropensity(), CMathObject::compileReactionNoise(), CMathObject::compileTotalMass(), CMathObject::compileTransitionTime(), CMathObject::compileValue(), copyBranch(), createApplyInitialValuesSequence(), createDelays(), CAnalyticsTask::createEvent(), CMathObject::createExtensiveReactionNoiseExpression(), CMathObject::createExtensiveReactionRateExpression(), CMathObject::createIntensiveRateExpression(), createNodeFromValue(), createSynchronizeInitialValuesSequence(), CMathEvent::createUpdateSequences(), createUpdateSimulationValuesSequence(), createValueChangeProhibited(), CCSPMethod::cspstep(), fetchState(), getCompartment(), getInitialValueObject(), getMathObject(), getMathReaction(), getObject(), CModelParameterGroup::getObjectUnit(), CUnitValidator::getObjectUnit(), CEvaluationNodeObject::getUnit(), CEvaluationNodeOperator::getUnit(), getValueObject(), CMathReaction::initialize(), CNewtonMethod::initialize(), CSensMethod::initialize(), initializeAtolVector(), CTimeSensMethod::initializeDerivativesCalculations(), CMathDerive::initOneVar(), CTimeSensMethod::initResult(), CMCAMethod::isValidProblem(), processRoots(), pushAllTransientValues(), pushInitialState(), pushState(), removeAnalysisEvent(), removeDataObject(), sanitizeDataValue2DataObject(), CMCAMethod::scaleMCA(), CStochasticRungeKuttaRI5::start(), CStochDirectMethod::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), and CSteadyStateTask::updateMatrices().
CMathReaction * CMathContainer::getMathReaction | ( | const CReaction * | pReaction | ) | const |
Retrieve a pointer to the corresponding the mathematical reaction for the given reaction if it exists otherwise NULL
const | CObjectInterface * pObject |
References CVectorCore< CType >::array(), C_FLOAT64, CReaction::getFluxReference(), getMathObject(), CMathObject::getValuePointer(), mFluxes, and mReactions.
Referenced by CHybridMethodODE45::partitionSystem().
const CModel & CMathContainer::getModel | ( | ) | const |
Retrieve the model for the container
References mpModel.
Referenced by CSteadyStateMethod::allPositive(), CLNAMethod::calculateCovarianceMatrixFull(), CTimeSeries::compile(), CMathObject::compilePropensity(), CMathObject::compileTransitionTime(), COutputAssistant::createDefaultOutput(), CAnalyticsTask::createEvent(), CCrossSectionTask::createEvent(), CMathObject::createExtensiveReactionNoiseExpression(), CMathObject::createExtensiveReactionRateExpression(), CMCAMethod::createLinkMatrix(), CFitProblem::createParameterSet(), CCSPMethod::CSPOutput(), CILDMMethod::deuflhard(), CEFMTask::getInternalSpecies(), CMCAMethod::getModel(), CEFMTask::getNetReaction(), CEvaluationNodeDelay::getUnit(), CBitPatternMethod::initialize(), CBitPatternTreeMethod::initialize(), CEFMAlgorithm::initialize(), CCSPMethod::initializeOutput(), CEFMMethod::isValidProblem(), CLNAMethod::isValidProblem(), CMCAMethod::isValidProblem(), CHybridMethod::isValidProblem(), CStochDirectMethod::isValidProblem(), CStochMethod::isValidProblem(), CTauLeapMethod::isValidProblem(), CTrajAdaptiveSA::isValidProblem(), CTrajectoryMethodDsaLsodar::isValidProblem(), CTSSAMethod::isValidProblem(), CILDMMethod::newton(), CCSPMethod::printResult(), CILDMModifiedMethod::printResult(), CEFMProblem::printResult(), CMoietiesProblem::printResult(), CMoietiesMethod::process(), CLNAMethod::resizeAllMatrices(), CMCAMethod::resizeAllMatrices(), CCSPMethod::setAnnotationM(), CILDMMethod::setAnnotationM(), CILDMModifiedMethod::setAnnotationM(), CEvaluationNodeDelay::setUnit(), CTrajectoryMethodDsaLsodar::start(), CCSPMethod::start(), CTSSAMethod::start(), and CILDMMethod::step().
const CVectorCore< C_FLOAT64 > & CMathContainer::getNoise | ( | const bool & | reduced | ) | const |
Retrieve the noise simulation type EventTarget, Time, ODE, Dependent, (and Independent).
const | bool & reduced |
References mExtensiveNoise, and mNoiseReduced.
Referenced by CStochasticRungeKuttaRI5::start().
const CObjectInterface::ObjectSet & CMathContainer::getNoiseInputObjects | ( | ) | const |
ARetrieve the set of noise input objects
References mNoiseInputObjects.
Referenced by CStochasticRungeKuttaRI5::start().
const CCore::CUpdateSequence & CMathContainer::getNoiseSequence | ( | const bool & | useMoieties | ) | const |
Retrieve the sequence for calculating all noise values.
const | bool & useMoieties |
References mNoiseSequence, and mNoiseSequenceReduced.
|
virtual |
Retrieve a descendant object by its partial CN.
const | CCommonName & cn |
Reimplemented from CDataContainer.
References CDataObject::getCN(), getMathObject(), CDataContainer::getObject(), CDataObject::getObjectDataModel(), CObjectInterface::GetObjectFromCN(), CCommonName::getPrimary(), and mpModel.
Referenced by copyBranch(), CModelParameterGroup::getObjectUnit(), CTimeSensMethod::initializeDerivativesCalculations(), and CTimeSensMethod::initResult().
|
virtual |
Retrieve a object by its full CN.
const | CCommonName & cn |
References CDataObject::getObjectDataModel(), CObjectInterface::GetObjectFromCN(), and mpModel.
const CVectorCore< C_FLOAT64 > & CMathContainer::getParticleFluxes | ( | ) | const |
Retrieve reaction particle fluxes.
References mParticleFluxes.
Referenced by CLNAMethod::calculateCovarianceMatrixReduced(), CMCAMethod::calculateUnscaledElasticities(), CCSPMethod::CSPImportanceIndex(), CCSPMethod::CSPParticipationIndex(), and CMCAMethod::scaleMCA().
CMathEventQueue & CMathContainer::getProcessQueue | ( | ) |
Retrieve the event processing queue.
References mpProcessQueue.
Referenced by CMathEvent::fire().
C_FLOAT64 CMathContainer::getProcessQueueExecutionTime | ( | ) | const |
Retrieve the next execution time scheduled in the process queue
References CMathEventQueue::getProcessQueueExecutionTime(), and mpProcessQueue.
Referenced by CTimeSensTask::processStep(), and CTrajectoryTask::processStep().
const CVectorCore< C_FLOAT64 > & CMathContainer::getPropensities | ( | ) | const |
Retrieve reaction propensities.
References mPropensities.
Referenced by CStochDirectMethod::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), and CTrajectoryMethodDsaLsodar::start().
const C_FLOAT64 & CMathContainer::getQuantity2NumberFactor | ( | ) | const |
Retrieve the Quantity to Number conversion factor
References C_FLOAT64, CDataObject::getValuePointer(), and mpQuantity2NumberFactor.
Referenced by CMathEvent::CAssignment::compile(), CNewtonMethod::targetFunctionDistance(), and CNewtonMethod::targetFunctionRate().
const CObjectInterface * CMathContainer::getQuantity2NumberFactorObject | ( | ) | const |
Retrieve the Quantity to Number conversion factor
References mpQuantity2NumberFactor.
Referenced by CMathObject::compile().
CRandom & CMathContainer::getRandomGenerator | ( | ) | const |
Retrieve the random number generator.
References mpRandomGenerator.
Referenced by CMathEventQueue::getAction(), COptProblem::randomizeStartValues(), CHybridMethod::start(), CHybridMethodODE45::start(), CStochasticRungeKuttaRI5::start(), CStochDirectMethod::start(), CStochMethod::start(), CTauLeapMethod::start(), and CTrajAdaptiveSA::start().
const CDataObject * CMathContainer::getRandomObject | ( | ) | const |
Retrieve the object which triggers recalculation of random functions
References mRandom.
Referenced by CMathDependencyGraph::getUpdateSequence().
const CVectorCore< C_FLOAT64 > & CMathContainer::getRate | ( | const bool & | reduced | ) | const |
Retrieve the rate of state values, i.e., all initial values of objects of simulation type EventTarget, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
const | bool & reduced |
References mRate, and mRateReduced.
Referenced by CTimeSensMethod::calculate_dRate_dPar(), CAnalyticsTask::createEvent(), CLsodaMethod::evalF(), CLsodaMethod2::evalF(), CRadau5Method::evalF(), CTrajectoryMethodDsaLsodar::evalF(), CNewtonMethod::initialize(), CLyapWolfMethod::start(), CTimeSensLsodaMethod::start(), CHybridMethod::start(), CHybridMethodODE45::start(), CLsodaMethod::start(), CLsodaMethod2::start(), CRadau5Method::start(), CStochasticRungeKuttaRI5::start(), and CTSSAMethod::start().
CVectorCore< CMathReaction > & CMathContainer::getReactions | ( | ) |
Retrieve the reactions
References mReactions.
Referenced by CLNAMethod::calculateCovarianceMatrixReduced(), CCSPMethod::CSPImportanceIndex(), CCSPMethod::CSPParticipationIndex(), CCSPMethod::CSPradicalPointer(), CCSPMethod::cspstep(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CSteadyStateMethod::isEquilibrium(), CHybridMethod::isValidProblem(), CTauLeapMethod::isValidProblem(), CTrajAdaptiveSA::isValidProblem(), CHybridMethodODE45::partitionSystem(), CMCAMethod::resizeAllMatrices(), CMCAMethod::scaleMCA(), CILDMMethod::setAnnotationM(), CCSPMethod::setVectors(), CILDMMethod::setVectors(), CCSPMethod::setVectorsToNaN(), CHybridMethod::start(), CStochDirectMethod::start(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), CCSPMethod::start(), and CILDMMethod::step().
const CVectorCore< CMathReaction > & CMathContainer::getReactions | ( | ) | const |
const CVectorCore< bool > & CMathContainer::getRootIsDiscrete | ( | ) | const |
Retrieve a vector of Boolean values indicating whether a root is changing continuously or only during discrete event processing
References mRootIsDiscrete.
Referenced by CHybridMethodODE45::checkRoots(), CStochDirectMethod::checkRoots(), CTimeSensLsodaMethod::createRootMask(), CLsodaMethod::createRootMask(), CLsodaMethod2::createRootMask(), CRadau5Method::createRootMask(), CStochasticRungeKuttaRI5::createRootMask(), CTimeSensLsodaMethod::setRootMaskType(), CLsodaMethod::setRootMaskType(), CRadau5Method::setRootMaskType(), CTimeSensLsodaMethod::start(), CHybridMethodODE45::start(), CLsodaMethod::start(), CLsodaMethod2::start(), CRadau5Method::start(), and CStochasticRungeKuttaRI5::start().
const CVectorCore< bool > & CMathContainer::getRootIsTimeDependent | ( | ) | const |
Retrieve a vector of Boolean values indicating whether a root time dependent
References mRootIsTimeDependent.
Referenced by CHybridMethodODE45::checkRoots(), and CStochDirectMethod::checkRoots().
CVector< CMathEvent::CTrigger::CRootProcessor * > & CMathContainer::getRootProcessors | ( | ) |
Retrieve a vector of pointers to root processors
References mRootProcessors.
Referenced by CMathEventQueue::rootsFound().
const CVectorCore< C_FLOAT64 > & CMathContainer::getRoots | ( | ) | const |
Retrieve root values.
References mEventRoots.
Referenced by CStochDirectMethod::checkRoots(), CTimeSensLsodaMethod::createRootMask(), CHybridMethodODE45::createRootMask(), CLsodaMethod::createRootMask(), CRadau5Method::createRootMask(), CMathEvent::createUpdateSequences(), CStochDirectMethod::doSingleStep(), CTimeSensLsodaMethod::evalR(), CLsodaMethod::evalR(), CRadau5Method::evalR(), CHybridMethodODE45::evalR(), CLsodaMethod2::evalRoot(), CTimeSensLsodaMethod::peekAhead(), CLsodaMethod::peekAhead(), CLsodaMethod2::peekAhead(), CRadau5Method::peekAhead(), CMathEventQueue::process(), CMathEventQueue::rootsFound(), CStochDirectMethod::rootValue(), CTimeSensLsodaMethod::setRootMaskType(), CLsodaMethod::setRootMaskType(), CRadau5Method::setRootMaskType(), CMathEventQueue::start(), CTimeSensLsodaMethod::start(), CHybridMethodODE45::start(), CLsodaMethod::start(), CLsodaMethod2::start(), CRadau5Method::start(), CStochasticRungeKuttaRI5::start(), CStochDirectMethod::start(), CStochDirectMethod::stateChange(), and CLsodaMethod::step().
const CObjectInterface::ObjectSet & CMathContainer::getSimulationUpToDateObjects | ( | ) | const |
Retrieve the objects which are up to date after a call to updateSimulatedValues.
References mSimulationRequiredValues.
Referenced by CExperiment::compile(), COutputHandler::compileUpdateSequence(), CMathEvent::createUpdateSequences(), CScanMethod::init(), COptProblem::initialize(), CFitProblem::initialize(), CNewtonMethod::initialize(), CTimeSensMethod::initializeDerivativesCalculations(), and CHybridMethodODE45::partitionSystem().
const CCore::CUpdateSequence & CMathContainer::getSimulationValuesSequence | ( | const bool & | useMoieties | ) | const |
Retrieve the sequence for calculating all values needed for the simulation.
const | bool & useMoieties |
References mSimulationValuesSequence, and mSimulationValuesSequenceReduced.
Referenced by CODEExporter::exportObjectNodesFromModel().
const CVectorCore< C_FLOAT64 > & CMathContainer::getState | ( | const bool & | reduced | ) | const |
Retrieves the state values, i.e., all values of objects of simulation type EventTarget, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
const | bool & reduced |
References mState, and mStateReduced.
Referenced by CTimeSensMethod::calculate_dAssignments_dState(), CLNAMethod::calculateCovarianceMatrixReduced(), calculateElasticityDependencies(), calculateJacobian(), calculateJacobianDependencies(), CMCAMethod::calculateUnscaledElasticities(), CTimeSeries::compile(), CMathEvent::compile(), CAnalyticsTask::createEvent(), CTrajAdaptiveSA::doSingleTauLeapStep(), CLsodaMethod::evalF(), CLsodaMethod2::evalF(), CRadau5Method::evalF(), CTimeSensLsodaMethod::evalR(), CLsodaMethod::evalR(), CRadau5Method::evalR(), CAnalyticsTask::eventCallBack(), CAnalyticsTask::finish(), CScanMethod::init(), CSteadyStateMethod::initialize(), CTSSATask::initialize(), CSteadyStateTask::initialize(), initializeAtolVector(), CTimeSensMethod::initResult(), CTrajectoryMethodDsaLsodar::CPartition::intialize(), CMathEventQueue::process(), CLyapTask::process(), CTimeSensTask::process(), CAnalyticsTask::process(), CSteadyStateTask::process(), CTimeSensTask::processStart(), CTrajectoryTask::processStart(), CTSSATask::processStart(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), CCopasiTask::restore(), CSteadyStateTask::restore(), CSteadyStateMethod::returnProcess(), CMCAMethod::scaleMCA(), CTimeSensMethod::signalMathContainerChanged(), CTimeSensTask::signalMathContainerChanged(), CTrajectoryMethod::signalMathContainerChanged(), CTrajectoryTask::signalMathContainerChanged(), CLyapWolfMethod::start(), CMathEventQueue::start(), CHybridMethod::start(), CTrajectoryMethod::start(), CTSSAMethod::start(), CModel::stateToIntialState(), CLsodaMethod2::step(), CTimeSensLsodaMethod::step(), CLsodaMethod::step(), CRadau5Method::step(), and CSteadyStateTask::updateMatrices().
const CObjectInterface::ObjectSet & CMathContainer::getStateObjects | ( | const bool & | reduced = false | ) | const |
Retrieve the objects which represent the state or reduced state.
const | bool & reduced (default: false) |
References mReducedStateValues, and mStateValues.
Referenced by CExperiment::compile(), COutputHandler::compileUpdateSequence(), CMathDelay::createUpdateSequences(), CMathEvent::createUpdateSequences(), COptProblem::initialize(), CFitProblem::initialize(), CNewtonMethod::initialize(), CSensMethod::initialize(), CTimeSensMethod::initializeDerivativesCalculations(), CMCAMethod::isValidProblem(), and CStochasticRungeKuttaRI5::start().
Retrieve the stoichiometry matrix
const | bool & reduced (default: false) |
References CModel::getRedStoi(), CModel::getStoi(), and mpModel.
Referenced by CCSPMethod::CSPImportanceIndex(), CCSPMethod::CSPParticipationIndex(), and CCSPMethod::CSPradicalPointer().
const CCore::CUpdateSequence & CMathContainer::getSynchronizeInitialValuesSequence | ( | const CCore::Framework & | framework | ) | const |
Retrieve the sequence for synchronizing all transient values for the given framework.
const | CCore::Framework & framework |
References CCore::__SIZE, CCore::Concentration, mSynchronizeInitialValuesSequenceExtensive, mSynchronizeInitialValuesSequenceIntensive, and CCore::ParticleNumbers.
const CVectorCore< C_FLOAT64 > & CMathContainer::getTotalMasses | ( | ) | const |
Retrieve the total masses of the moieties.
References mTotalMasses.
Referenced by CMathEvent::createUpdateSequences().
const CCore::CUpdateSequence & CMathContainer::getTransientDataValueSequence | ( | ) | const |
Retrieve the sequence for updating all transient values.
References mTransientDataObjectSequence.
const CMathDependencyGraph & CMathContainer::getTransientDependencies | ( | ) | const |
Retrieve the transient dependencies
References mTransientDependencies.
Referenced by CModel::appendAllDependents(), CModel::appendDirectDependents(), CMCAMethod::calculateUnscaledElasticities(), CExperiment::compile(), COutputHandler::compileUpdateSequence(), CMathDelay::createUpdateSequences(), CMathEvent::createUpdateSequences(), CScanMethod::init(), COptProblem::initialize(), CFitProblem::initialize(), CNewtonMethod::initialize(), CSensMethod::initialize(), CTimeSensMethod::initializeDerivativesCalculations(), CMCAMethod::isValidProblem(), CHybridMethodODE45::partitionSystem(), CHybridMethod::setupDependencyGraph(), CStochasticRungeKuttaRI5::start(), CStochDirectMethod::start(), CStochMethod::start(), CTrajAdaptiveSA::start(), and CTrajectoryMethodDsaLsodar::start().
const CObjectInterface::ObjectSet & CMathContainer::getValueChangeProhibited | ( | ) | const |
Retrieve the objects for which the intial value change is prohibitied.
References mValueChangeProhibited.
CMathObject * CMathContainer::getValueObject | ( | const CMathObject * | pInitialObject | ) | const |
Retrieve the pointer to the corresponding value object
const | CMathObject * pInitialObject |
References getMathObject(), CMathObject::getValue(), and CDataObject::getValuePointer().
Retrieve the pointer to the corresponding value
const | C_FLOAT64 * pInitialValue |
References CVectorCore< CType >::begin(), C_FLOAT64, CVectorCore< CType >::end(), CDataObject::getDataObject(), mExtensiveValues, and mValues.
CVectorCore< C_FLOAT64 > & CMathContainer::getValues | ( | ) |
Retrieve the values of all mathematical objects
References mValues.
const CVectorCore< C_FLOAT64 > & CMathContainer::getValues | ( | ) | const |
Retrieve the values of all mathematical objects
References mValues.
Referenced by CScanMethod::calculate(), CTSSAMethod::calculateDerivatives(), and CMathDerive::initOneVar().
|
private |
Ignore the discontinuity event
CMathEvent | * pEvent |
References CVectorCore< CType >::array(), CVectorCore< CType >::begin(), createRelocation(), CMathEvent::CTrigger::getRoots(), CMathEvent::getTrigger(), CVectorCore< CType >::initialize(), mEventDelays, mEventRoots, mEventRootStates, mEvents, mEventTriggers, mExtensiveNoise, mExtensiveValues, mInitialEventTriggers, mNumTotalRootsIgnored, mRootIsDiscrete, mRootIsTimeDependent, mRootProcessors, mSize, mValues, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMath::sRelocate::offset, CMath::sRelocate::pNewObject, CMath::sRelocate::pNewValue, CMathContainer::sSize::pObject, CMath::sRelocate::pObjectEnd, CMath::sRelocate::pObjectStart, CMath::sRelocate::pOldObject, CMath::sRelocate::pOldValue, CMathContainer::sSize::pValue, CMath::sRelocate::pValueEnd, CMath::sRelocate::pValueStart, relocate(), CVector< CType >::resize(), CMathEvent::setDisabled(), and CVectorCore< CType >::size().
Referenced by compileEvents().
CVector< C_FLOAT64 > CMathContainer::initializeAtolVector | ( | const C_FLOAT64 & | baseTolerance, |
const bool & | reduced | ||
) | const |
Initialize a vector of individual absolute tolerances
const | C_FLOAT64 & baseTolerance |
const | bool & reduced |
References CVectorCore< CType >::array(), C_FLOAT64, CMath::Compartment, CMetab::getCompartment(), CMathObject::getDataObject(), CMathObject::getEntityType(), CModelEntity::getInitialValueReference(), getMathObject(), CDataObject::getObjectParent(), getState(), CDataObject::getValuePointer(), CMath::GlobalQuantity, max, mDataObject2MathObject, min, mInitialState, CMath::Model, mpQuantity2NumberFactor, mSize, CMathContainer::sSize::nFixed, CVector< CType >::resize(), CVectorCore< CType >::size(), and CMath::Species.
Referenced by CSteadyStateMethod::initialize(), CLyapWolfMethod::start(), CTimeSensLsodaMethod::start(), CLsodaMethod::start(), CLsodaMethod2::start(), CRadau5Method::start(), and CStochasticRungeKuttaRI5::start().
|
private |
Initialize the pointers used for the conversion of discontinuous nodes.
References CVectorCore< CType >::array(), C_FLOAT64, mCreateDiscontinuousPointer, mDiscontinuous, mEvents, mObjects, mValues, CMathContainer::sDiscontinuous::pDiscontinuous, CMathContainer::sDiscontinuous::pEvent, and CVectorCore< CType >::size().
Referenced by compile().
|
private |
Initialize the events
sPointers | & pointers |
References CMathEvent::allocate(), CVectorCore< CType >::array(), CDataVector< CType >::begin(), CDataVector< CType >::end(), CModel::getEvents(), CMathEvent::initialize(), mDiscontinuityEvents, mEvents, and mpModel.
Referenced by compile().
|
private |
Initialize several mathematical objects for local reaction parameters and advance relevant pointers
const | CDataVector< CMoiety > & moieties |
CMathContainer::sPointers | & p |
References CDataVector< CType >::begin(), CMath::DependentMass, CDataVector< CType >::end(), CMathObject::initialize(), CMath::Moiety, CMath::sPointers::pDependentMasses, CMath::sPointers::pDependentMassesObject, CMath::sPointers::pInitialTotalMasses, CMath::sPointers::pInitialTotalMassesObject, CMath::sPointers::pTotalMasses, CMath::sPointers::pTotalMassesObject, CMath::TotalMass, and CMath::Undefined.
|
private |
Initialize several mathematical objects for local reaction parameters and advance relevant pointers
const | CDataVector< CReaction > & reactions |
CMathContainer::sPointers | & p |
References CDataVector< CType >::begin(), CDataVector< CType >::end(), CMath::Flux, CMathObject::initialize(), CMath::Noise, CMath::ParticleFlux, CMath::ParticleNoise, CMath::sPointers::pFluxes, CMath::sPointers::pFluxesObject, CMath::sPointers::pInitialFluxes, CMath::sPointers::pInitialFluxesObject, CMath::sPointers::pInitialParticleFluxes, CMath::sPointers::pInitialParticleFluxesObject, CMath::sPointers::pParticleFluxes, CMath::sPointers::pParticleFluxesObject, CMath::sPointers::pPropensities, CMath::sPointers::pPropensitiesObject, CMath::sPointers::pReactionNoise, CMath::sPointers::pReactionNoiseObject, CMath::sPointers::pReactionParticleNoise, CMath::sPointers::pReactionParticleNoiseObject, CMath::Propensity, CMath::Reaction, and CMath::Undefined.
|
private |
Initialize several mathematical objects for local reaction parameters and advance relevant pointers
const | std::vector<const CDataObject *> & parameters |
CMathContainer::sPointers | & p |
References CMath::Fixed, CMathObject::initialize(), CMath::LocalReactionParameter, CMath::sPointers::pExtensiveRates, CMath::sPointers::pExtensiveRatesObject, CMath::sPointers::pExtensiveValues, CMath::sPointers::pExtensiveValuesObject, CMath::sPointers::pInitialExtensiveRates, CMath::sPointers::pInitialExtensiveRatesObject, CMath::sPointers::pInitialExtensiveValues, CMath::sPointers::pInitialExtensiveValuesObject, CMath::Rate, and CMath::Value.
|
private |
Initialize several mathematical objects of a common simulation type and advance relevant pointers
const | std::vector<const CModelEntity*> & entities |
const | CMath::SimulationType & simulationType |
sPointers | & pointers |
References CMath::Assignment, CMath::Conversion, CMath::Dependent, CMath::EventTarget, CMath::Fixed, CMetab::getConcentrationRateReference(), CMetab::getConcentrationReference(), getEntityType(), CMetab::getInitialConcentrationReference(), CModelEntity::getInitialExpression(), CMetab::getIntensiveNoiseReference(), CMetab::getTransitionTimeReference(), CMath::Independent, CMathObject::initialize(), CMath::Noise, CMath::ODE, CMath::sPointers::pExtensiveNoise, CMath::sPointers::pExtensiveNoiseObject, CMath::sPointers::pExtensiveRates, CMath::sPointers::pExtensiveRatesObject, CMath::sPointers::pExtensiveValues, CMath::sPointers::pExtensiveValuesObject, CMath::sPointers::pInitialExtensiveRates, CMath::sPointers::pInitialExtensiveRatesObject, CMath::sPointers::pInitialExtensiveValues, CMath::sPointers::pInitialExtensiveValuesObject, CMath::sPointers::pInitialIntensiveRates, CMath::sPointers::pInitialIntensiveRatesObject, CMath::sPointers::pInitialIntensiveValues, CMath::sPointers::pInitialIntensiveValuesObject, CMath::sPointers::pIntensiveNoise, CMath::sPointers::pIntensiveNoiseObject, CMath::sPointers::pIntensiveRates, CMath::sPointers::pIntensiveRatesObject, CMath::sPointers::pIntensiveValues, CMath::sPointers::pIntensiveValuesObject, CMath::sPointers::pTransitionTime, CMath::sPointers::pTransitionTimeObject, CMath::Rate, CMath::Species, CMath::TransitionTime, and CMath::Value.
Referenced by initializeObjects().
|
private |
Initialize the objects
sPointers | & pointers |
References CObjectLists::ALL_LOCAL_PARAMETER_VALUES, CMath::Assignment, CModelEntity::ASSIGNMENT, CStateTemplate::beginDependent(), CStateTemplate::beginFixed(), CStateTemplate::beginIndependent(), CMath::Dependent, CMath::Discontinuous, CStateTemplate::endDependent(), CStateTemplate::endFixed(), CStateTemplate::endIndependent(), CMath::Event, CMath::EventTarget, CMath::Fixed, CObjectLists::getEventTargets(), CModelEntity::getInitialValueReference(), CObjectLists::getListOfConstObjects(), CModel::getMoieties(), CModelEntity::getRateReference(), CModel::getReactions(), CModel::getStateTemplate(), CModelEntity::getStatus(), CModelEntity::getValueReference(), CMath::Independent, CMathObject::initialize(), initializeMathObjects(), mDiscontinuous, CMath::Model, mpModel, mSize, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactionSpecies, CMath::ODE, CModelEntity::ODE, CMath::sPointers::pDiscontinuous, CMath::sPointers::pDiscontinuousObject, CMath::sPointers::pExtensiveRates, CMath::sPointers::pExtensiveRatesObject, CMath::sPointers::pExtensiveValues, CMath::sPointers::pExtensiveValuesObject, CMath::sPointers::pInitialExtensiveRates, CMath::sPointers::pInitialExtensiveRatesObject, CMath::sPointers::pInitialExtensiveValues, CMath::sPointers::pInitialExtensiveValuesObject, CMath::Rate, CModelEntity::REACTIONS, CVectorCore< CType >::size(), CMath::Time, CMath::Undefined, and CMath::Value.
Referenced by compile().
|
private |
Initialize the pointers
sPointers | & pointers |
References CVectorCore< CType >::array(), C_FLOAT64, mDelayLags, mDelayValues, mDependentMasses, mDiscontinuous, mEventAssignments, mEventDelays, mEventPriorities, mEventRoots, mEventRootStates, mEventTriggers, mExtensiveNoise, mExtensiveRates, mExtensiveValues, mFluxes, mInitialEventTriggers, mInitialExtensiveRates, mInitialExtensiveValues, mInitialFluxes, mInitialIntensiveRates, mInitialIntensiveValues, mInitialParticleFluxes, mInitialTotalMasses, mIntensiveNoise, mIntensiveRates, mIntensiveValues, mObjects, mParticleFluxes, mPropensities, mReactionNoise, mReactionParticleNoise, mTotalMasses, mTransitionTimes, mValues, CMath::sPointers::pDelayLag, CMath::sPointers::pDelayLagObject, CMath::sPointers::pDelayValue, CMath::sPointers::pDelayValueObject, CMath::sPointers::pDependentMasses, CMath::sPointers::pDependentMassesObject, CMath::sPointers::pDiscontinuous, CMath::sPointers::pDiscontinuousObject, CMath::sPointers::pEventAssignments, CMath::sPointers::pEventAssignmentsObject, CMath::sPointers::pEventDelays, CMath::sPointers::pEventDelaysObject, CMath::sPointers::pEventPriorities, CMath::sPointers::pEventPrioritiesObject, CMath::sPointers::pEventRoots, CMath::sPointers::pEventRootsObject, CMath::sPointers::pEventRootStates, CMath::sPointers::pEventRootStatesObject, CMath::sPointers::pEventTriggers, CMath::sPointers::pEventTriggersObject, CMath::sPointers::pExtensiveNoise, CMath::sPointers::pExtensiveNoiseObject, CMath::sPointers::pExtensiveRates, CMath::sPointers::pExtensiveRatesObject, CMath::sPointers::pExtensiveValues, CMath::sPointers::pExtensiveValuesObject, CMath::sPointers::pFluxes, CMath::sPointers::pFluxesObject, CMath::sPointers::pInitialEventTriggers, CMath::sPointers::pInitialEventTriggersObject, CMath::sPointers::pInitialExtensiveRates, CMath::sPointers::pInitialExtensiveRatesObject, CMath::sPointers::pInitialExtensiveValues, CMath::sPointers::pInitialExtensiveValuesObject, CMath::sPointers::pInitialFluxes, CMath::sPointers::pInitialFluxesObject, CMath::sPointers::pInitialIntensiveRates, CMath::sPointers::pInitialIntensiveRatesObject, CMath::sPointers::pInitialIntensiveValues, CMath::sPointers::pInitialIntensiveValuesObject, CMath::sPointers::pInitialParticleFluxes, CMath::sPointers::pInitialParticleFluxesObject, CMath::sPointers::pInitialTotalMasses, CMath::sPointers::pInitialTotalMassesObject, CMath::sPointers::pIntensiveNoise, CMath::sPointers::pIntensiveNoiseObject, CMath::sPointers::pIntensiveRates, CMath::sPointers::pIntensiveRatesObject, CMath::sPointers::pIntensiveValues, CMath::sPointers::pIntensiveValuesObject, CMath::sPointers::pParticleFluxes, CMath::sPointers::pParticleFluxesObject, CMath::sPointers::pPropensities, CMath::sPointers::pPropensitiesObject, CMath::sPointers::pReactionNoise, CMath::sPointers::pReactionNoiseObject, CMath::sPointers::pReactionParticleNoise, CMath::sPointers::pReactionParticleNoiseObject, CMath::sPointers::pTotalMasses, CMath::sPointers::pTotalMassesObject, CMath::sPointers::pTransitionTime, and CMath::sPointers::pTransitionTimeObject.
Referenced by addAnalysisEvent(), compile(), and removeAnalysisEvent().
const bool & CMathContainer::isAutonomous | ( | ) | const |
Check whether the model is autonomous
References mIsAutonomous.
Referenced by CModel::compile(), CNewtonMethod::isValidProblem(), CSteadyStateTask::process(), CCopasiTask::restore(), and CNewtonMethod::targetFunctionDistance().
bool CMathContainer::isStateValid | ( | ) | const |
Check whether the current state is valid.
References CVectorCore< CType >::array(), C_FLOAT64, mState, and CVectorCore< CType >::size().
Referenced by CNewtonMethod::containsNaN(), CStochasticRungeKuttaRI5::internalStep(), CSteadyStateTask::process(), CCopasiTask::restore(), CSteadyStateTask::restore(), CLsodaMethod2::step(), CTimeSensLsodaMethod::step(), CLsodaMethod::step(), and CRadau5Method::step().
|
private |
Determine whether on object has calculation dependencies. Map the data object to the math object
References CVectorCore< CType >::begin(), C_FLOAT64, CVectorCore< CType >::end(), CMathObject::getDataObject(), CDataObject::getValuePointer(), mDataObject2MathObject, mDataValue2MathObject, and mObjects.
Referenced by addAnalysisEvent(), addAnalysisObject(), compile(), createDelays(), removeAnalysisEvent(), and removeAnalysisObject().
|
private |
Move the container data the container
CMathContainer::sSize | & size |
References CVectorCore< CType >::array(), C_FLOAT64, createRelocations(), CVectorCore< CType >::initialize(), mDataObject2MathObject, mDataValue2MathObject, mObjects, mpObjectsBuffer, mpValuesBuffer, mValues, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nIntensiveValues, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactions, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMathContainer::sSize::pObject, CMathContainer::sSize::pValue, and relocate().
Referenced by resize().
bool CMathContainer::operator== | ( | const CMathContainer & | rhs | ) |
Check whether 2 container would genereate equivalent results
References mCompileTime, and mpModel.
CMath::StateChange CMathContainer::processQueue | ( | const bool & | equality | ) |
Process events scheduled at the given which a are checked for equality or not
const | bool & equality |
References mpProcessQueue, and CMathEventQueue::process().
Referenced by CTimeSensTask::process(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), CTrajectoryTask::processTrajectory(), and CTrajectoryTask::processValues().
Check whether the roots which have value 1 lead to firing of events and schedule them if needed.
const | bool & equality |
const | CVector< C_INT > & rootsFound |
References CVectorCore< CType >::array(), C_FLOAT64, C_INT, CMathObject::calculateValue(), CMathEvent::fire(), getMathObject(), mEvents, mEventTriggers, mRootProcessors, mSize, mState, CMathContainer::sSize::nFixedEventTargets, CMath::NoToggle, CVectorCore< CType >::size(), CMath::ToggleBoth, CMath::ToggleEquality, and CMath::ToggleInequality.
Referenced by applyInitialValues(), CMathEventQueue::process(), CTimeSensTask::processStep(), and CTrajectoryTask::processStep().
Check whether the roots which have value 1 lead to firing of events and schedule them if needed.
const | CVector< C_INT > & rootsFound |
References CVectorCore< CType >::array(), C_FLOAT64, C_INT, CMathObject::calculateValue(), CMathEvent::fire(), getMathObject(), mEvents, mEventTriggers, mRootProcessors, mSize, mState, CMathContainer::sSize::nFixedEventTargets, and CVectorCore< CType >::size().
void CMathContainer::pushAllTransientValues | ( | ) |
Push all transient values to the associated model.
References CVectorCore< CType >::array(), C_FLOAT64, CMathObject::getDataObject(), getMathObject(), CDataObject::getValuePointer(), mExtensiveValues, mValues, and CVectorCore< CType >::size().
Referenced by CModel::applyInitialValues(), CTimeSensTask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CSteadyStateTask::process(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), and CCopasiTask::restore().
void CMathContainer::pushInitialState | ( | ) |
Push the initial state to the associated model
References CVectorCore< CType >::begin(), C_FLOAT64, CVectorCore< CType >::end(), CMathObject::getDataObject(), getMathObject(), CDataObject::getValuePointer(), mInitialExtensiveValues, mInitialIntensiveValues, and mInitialTotalMasses.
Referenced by ResultData::applyToModelStateFromOptTask(), CModel::compile(), CFitProblem::createParameterSets(), COptProblem::restore(), CFitProblem::restore(), CCopasiTask::restore(), CSteadyStateTask::restore(), CModel::stateToIntialState(), and CModel::updateInitialValues().
void CMathContainer::pushState | ( | ) |
Push the state to the associated model
References CVectorCore< CType >::array(), C_FLOAT64, CMathObject::getDataObject(), getMathObject(), CDataObject::getValuePointer(), mState, and CVectorCore< CType >::size().
void CMathContainer::registerUpdateSequence | ( | CMathUpdateSequence * | pUpdateSequence | ) |
Register and update sequence.
CMathUpdateSequence | * pUpdateSequence |
References mUpdateSequences, and CMathUpdateSequence::setMathContainer().
Referenced by CMathUpdateSequence::setMathContainer().
|
private |
Relocate the objects. This works only if you relocate objects down in the existing location or out of space.
const | sSize & size |
const | std::vector< CMath::sRelocate > & Relocations |
References CVectorCore< CType >::array(), CMathHistoryCore::array(), C_FLOAT64, CMathHistoryCore::initialize(), CVectorCore< CType >::initialize(), mCompleteInitialState, mDelayLags, mDelays, mDelayValues, mDependentMasses, mDiscontinuous, mEventAssignments, mEventDelays, mEventPriorities, mEventRoots, mEventRootStates, mEvents, mEventTriggers, mExtensiveNoise, mExtensiveRates, mExtensiveValues, mFluxes, mHistory, mHistoryReduced, mInitialDependencies, mInitialEventTriggers, mInitialExtensiveRates, mInitialExtensiveValues, mInitialFluxes, mInitialIntensiveRates, mInitialIntensiveValues, mInitialParticleFluxes, mInitialState, mInitialStateValueAll, mInitialStateValueExtensive, mInitialStateValueIntensive, mInitialTotalMasses, mIntensiveNoise, mIntensiveRates, mIntensiveValues, mNoiseInputObjects, mNoiseReduced, mOldObjects, mOldValues, mParticleFluxes, mpProcessQueue, mPropensities, mRate, mRateReduced, mReactionNoise, mReactionParticleNoise, mReactions, mReducedStateValues, mRootIsDiscrete, mRootIsTimeDependent, mRootProcessors, mSimulationRequiredValues, mSize, mState, mStateReduced, mStateValues, mTotalMasses, mTransientDependencies, mTransitionTimes, mUpdateSequences, mValueChangeProhibited, mValues, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nIntensiveValues, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactions, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMathContainer::sSize::pValue, CMathObject::relocate(), CMathDependencyGraph::relocate(), relocateObject(), relocateObjectSet(), relocateUpdateSequence(), relocateValue(), relocateVector(), CMathHistory::resize(), CVector< CType >::resize(), CVectorCore< CType >::size(), and CMathEventQueue::start().
Referenced by addAnalysisEvent(), ignoreDiscontinuityEvent(), move(), and removeAnalysisEvent().
void CMathContainer::relocateObject | ( | CMathObject *& | pObject, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References CVectorCore< CType >::array(), mObjects, mOldObjects, and CVectorCore< CType >::size().
void CMathContainer::relocateObject | ( | CObjectInterface *& | pObject, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References CObjectInterface::getDataObject().
Referenced by createDelays(), CMathObject::relocate(), CMathDelay::relocate(), CMathDependencyGraph::relocate(), CMathDependencyNode::relocate(), CMathEvent::CAssignment::relocate(), CMathEvent::CTrigger::CRootProcessor::relocate(), CMathEvent::CTrigger::relocate(), CMathEvent::relocate(), CMathReaction::relocate(), relocate(), relocateObject(), relocateObjectSet(), and relocateUpdateSequence().
void CMathContainer::relocateObject | ( | const CMathObject *& | pObject, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References relocateObject().
void CMathContainer::relocateObject | ( | const CObjectInterface *& | pObject, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References relocateObject().
void CMathContainer::relocateObjectSet | ( | CObjectInterface::ObjectSet & | objectSet, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References relocateObject().
Referenced by CMathObject::relocate(), CMathExpression::relocate(), CMathReaction::relocate(), and relocate().
void CMathContainer::relocateUpdateSequence | ( | CCore::CUpdateSequence & | sequence, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References CVectorCore< CType >::array(), CMathUpdateSequence::begin(), CMathUpdateSequence::end(), mObjects, mOldObjects, and relocateObject().
Referenced by relocate().
void CMathContainer::relocateValue | ( | C_FLOAT64 *& | pValue, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References CVectorCore< CType >::array(), C_FLOAT64, mOldValues, mValues, and CVectorCore< CType >::size().
Referenced by CMathObject::relocate(), CMathEvent::CTrigger::CRootProcessor::relocate(), CMathEvent::relocate(), CMathExpression::relocate(), CMathReaction::relocate(), relocate(), and relocateValue().
void CMathContainer::relocateValue | ( | const C_FLOAT64 *& | pValue, |
const std::vector< CMath::sRelocate > & | relocations | ||
) | const |
References C_FLOAT64, and relocateValue().
|
inlineprivate |
References CVectorCore< CType >::array(), CVectorCore< CType >::initialize(), min, and CVectorCore< CType >::size().
Referenced by relocate().
bool CMathContainer::removeAnalysisEvent | ( | CMathEvent *& | pMathEvent | ) |
Remove the event from the container
CMathEvent | *& pMathEvent |
References analyzeRoots(), CVectorCore< CType >::array(), createUpdateSequences(), finishResize(), CMathEvent::getAssignments(), getMathObject(), CMathEvent::CTrigger::getRoots(), CMathEvent::CAssignment::getTarget(), CMathEvent::getTrigger(), initializePointers(), map(), mEvents, mExtensiveRates, mExtensiveValues, mInitialDependencies, mInitialExtensiveRates, mInitialExtensiveValues, mSize, mTransientDependencies, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMath::sRelocate::offset, CMath::sPointers::pEventAssignmentsObject, CMath::sPointers::pEventDelaysObject, CMath::sPointers::pEventPrioritiesObject, CMath::sPointers::pEventRootsObject, CMath::sPointers::pEventRootStatesObject, CMath::sPointers::pEventTriggersObject, CMath::sPointers::pInitialEventTriggersObject, CMath::sRelocate::pNewObject, CMath::sRelocate::pNewValue, CMath::sRelocate::pObjectEnd, CMath::sRelocate::pObjectStart, CMath::sRelocate::pOldObject, CMath::sRelocate::pOldValue, CMath::sRelocate::pValueEnd, CMath::sRelocate::pValueStart, relocate(), CMathDependencyGraph::removeObject(), resize(), and CVectorCore< CType >::size().
Referenced by CAnalyticsTask::removeEvent(), and CCrossSectionTask::removeEvent().
bool CMathContainer::removeAnalysisObject | ( | CMath::Entity< CMathObject > & | mathObjects | ) |
Remove the event from the container
CMath::Entity< | CMathObject > & mathObjects |
References CMath::__SIZE, CMath::Assignment, C_INVALID_INDEX, CMath::Conversion, createUpdateSequences(), CMath::Dependent, CMath::EventTarget, fatalError, finishResize(), CMath::Fixed, CMath::Independent, CMath::Entity< CType >::InitialRate, CMath::Entity< CType >::InitialValue, map(), mInitialDependencies, mObjects, mSize, mTransientDependencies, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactionSpecies, CMathContainer::sSize::nTime, CMath::ODE, CMath::Entity< CType >::Rate, CMathDependencyGraph::removeObject(), resize(), CMath::Time, CMath::Undefined, and CMath::Entity< CType >::Value.
void CMathContainer::removeDataObject | ( | const CDataObject * | pObject | ) |
Remove a data object from the math container
const | CDataObject * pObject; |
References CDataContainer::getDescendants(), getInitialValueObject(), getMathObject(), CDataObject::hasFlag(), mInitialDependencies, mTransientDependencies, CMathDependencyGraph::removeObject(), and CMathObject::setDataObject().
Referenced by CModel::removeDataObject().
CEvaluationNode * CMathContainer::replaceDiscontinuousNode | ( | const CEvaluationNode * | pSrc, |
const std::vector< CEvaluationNode * > & | children | ||
) |
Replace a discontinuous node by an object node pointing to newly created math objects, which are targets of automatically generated events.
const | CEvaluationNode * pSrc |
const | std::vector< CEvaluationNode * > & children |
References CMathEvent::addAssignment(), CMathEvent::allocate(), CEvaluationNode::buildInfix(), C_FLOAT64, CEvaluationNode::copyNode(), createDiscontinuityTriggerInfix(), CEvent::Discontinuity, fatalError, CMathEvent::CTrigger::getRoots(), CMathEvent::getTrigger(), CMathObject::getValuePointer(), mCreateDiscontinuousPointer, mDiscontinuityInfix2Object, mRootCount2Events, mTriggerInfix2Event, pdelete, CMathContainer::sDiscontinuous::pDiscontinuous, CMathContainer::sDiscontinuous::pEvent, CMathObject::setExpressionPtr(), CEvent::setTriggerExpression(), CMathEvent::setTriggerExpression(), CEvent::setType(), CMathObject::setValueType(), and CMath::Undefined.
Referenced by copyBranch().
void CMathContainer::resetNoise | ( | ) |
Reset all niose values to zero
References CVectorCore< CType >::array(), C_FLOAT64, mExtensiveNoise, mIntensiveNoise, mReactionNoise, mReactionParticleNoise, and CVectorCore< CType >::size().
Referenced by CStochasticRungeKuttaRI5::evalNoise().
|
private |
Resize the container
CMathContainer::sSize | & size |
References move(), mSize, CMathContainer::sSize::nAssignment, CMathContainer::sSize::nDelayLags, CMathContainer::sSize::nDelayValues, CMathContainer::sSize::nDiscontinuities, CMathContainer::sSize::nEventAssignments, CMathContainer::sSize::nEventRoots, CMathContainer::sSize::nEvents, CMathContainer::sSize::nFixed, CMathContainer::sSize::nFixedEventTargets, CMathContainer::sSize::nIntensiveValues, CMathContainer::sSize::nMoieties, CMathContainer::sSize::nODE, CMathContainer::sSize::nODESpecies, CMathContainer::sSize::nReactions, CMathContainer::sSize::nReactionSpecies, and CMathContainer::sSize::nTime.
Referenced by addAnalysisEvent(), addAnalysisObject(), allocate(), createDelays(), removeAnalysisEvent(), and removeAnalysisObject().
|
private |
Remove data objects which have a representation in the math container
References getMathObject(), and mDataValue2DataObject.
Referenced by createUpdateSequences().
void CMathContainer::setCompleteInitialState | ( | const CVectorCore< C_FLOAT64 > & | initialState | ) |
Set the complete initial state values, i.e., all initial values including all internal values.
const | CVectorCore< C_FLOAT64 > & initialState |
References CVectorCore< CType >::array(), C_FLOAT64, mCompleteInitialState, and CVectorCore< CType >::size().
Referenced by COptProblem::adjustStartValuesForIntervals(), CFitProblem::calculate(), CFitProblem::calculateCrossValidation(), and CFitProblem::createParameterSets().
void CMathContainer::setHistory | ( | const CMathHistoryCore & | history | ) |
Set all the history values needed for calculation.
const | CMathHistoryCore & history |
References CMathHistoryCore::cols(), mHistory, mHistoryReduced, CMathHistoryCore::rows(), and CMathHistoryCore::size().
void CMathContainer::setInitialState | ( | const CVectorCore< C_FLOAT64 > & | initialState | ) |
Set the initial state values, i.e., all initial values of objects of simulation type Fixed, Time, ODE, Dependent, and Independent. It includes only extensive values for species.
const | CVectorCore< C_FLOAT64 > & initialState |
References CVectorCore< CType >::array(), C_FLOAT64, mInitialState, mSize, mState, CMathContainer::sSize::nFixed, and CVectorCore< CType >::size().
Referenced by CScanMethod::calculate(), CFitProblem::createParameterSets(), CCopasiTask::restore(), CSteadyStateTask::restore(), and CModel::stateToIntialState().
void CMathContainer::setState | ( | const CVectorCore< C_FLOAT64 > & | state | ) |
Set the state values, i.e., all initial values of objects of simulation type Time, ODE, Dependent, and Independent. It includes only extensive values for species.
const | CVectorCore< C_FLOAT64 > & state |
References CVectorCore< CType >::array(), C_FLOAT64, mState, and CVectorCore< CType >::size().
Referenced by CSteadyStateMethod::calculateJacobian(), CAnalyticsTask::computeSelectedStatistics(), CNewtonMethod::doIntegration(), CSteadyStateMethod::doJacobian(), CTrajAdaptiveSA::doSingleTauLeapStep(), CAnalyticsTask::eventCallBack(), CCrossSectionTask::eventCallBack(), CTimeSensMethod::output(), CTrajectoryMethod::output(), CTimeSensTask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CSteadyStateTask::process(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), CSteadyStateTask::restore(), and updateHistoryValues().
void CMathContainer::setValues | ( | const CVectorCore< C_FLOAT64 > & | values | ) |
Set the values of all mathematical objects
const | CVectorCore< C_FLOAT64 > & values |
References mValues, and CVectorCore< CType >::size().
Referenced by CTSSAMethod::calculateDerivatives().
void CMathContainer::updateHistoryValues | ( | const bool & | useMoieties | ) |
Calculate all historic values required for delayed differential equations
const | bool & useMoieties |
References CVectorCore< CType >::array(), CMathDelay::calculateDelayValues(), CMathHistoryCore::getRow(), mDelays, mHistory, mHistoryReduced, setState(), and CVectorCore< CType >::size().
void CMathContainer::updateInitialValues | ( | const CCore::Framework & | framework | ) |
Calculate all dependent initial values based on initial extensive or intensive values
const | CCore::Framework & framework |
References CCore::__SIZE, applyUpdateSequence(), CCore::Concentration, mSynchronizeInitialValuesSequenceExtensive, mSynchronizeInitialValuesSequenceIntensive, and CCore::ParticleNumbers.
Referenced by CModel::applyInitialValues(), CTimeSensMethod::calculate_dInitialState_dPar(), compile(), CModel::compile(), CCopasiTask::restore(), CSteadyStateTask::restore(), CModel::stateToIntialState(), and CModel::updateInitialValues().
void CMathContainer::updateNoiseValues | ( | const bool & | useMoieties | ) |
Calculate all noise valuse based on the current state
const | bool & useMoieties |
References applyUpdateSequence(), mNoiseSequence, and mNoiseSequenceReduced.
void CMathContainer::updatePriorityValues | ( | ) |
Calculate all dependent initial values based on initial extensive or intensive values
References applyUpdateSequence(), and mPrioritySequence.
Referenced by CMathEventQueue::process().
void CMathContainer::updateRootValues | ( | const bool & | useMoieties | ) |
Calculate all roots based on the current state
const | bool & useMoieties |
References applyUpdateSequence(), mRootSequence, and mRootSequenceReduced.
Referenced by calculateRootDerivatives(), calculateRootJacobian(), CTimeSensLsodaMethod::createRootMask(), CHybridMethodODE45::createRootMask(), CLsodaMethod::createRootMask(), CRadau5Method::createRootMask(), CTimeSensLsodaMethod::evalR(), CLsodaMethod::evalR(), CRadau5Method::evalR(), CHybridMethodODE45::evalR(), CStochasticRungeKuttaRI5::evalRoot(), CHybridMethodODE45::fireReaction(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), CTimeSensLsodaMethod::setRootMaskType(), CLsodaMethod::setRootMaskType(), CRadau5Method::setRootMaskType(), and CMathEvent::setTargetValues().
void CMathContainer::updateSimulatedValues | ( | const bool & | useMoieties | ) |
Calculate all values required for simulation based on the current state
const | bool & useMoieties |
References applyUpdateSequence(), mSimulationValuesSequence, and mSimulationValuesSequenceReduced.
Referenced by CSteadyStateMethod::allPositive(), CModel::applyInitialValues(), CLyapWolfMethod::calculate(), CHybridMethod::calculateDerivative(), CTSSAMethod::calculateDerivatives(), CNewtonMethod::calculateDerivativesX(), calculateJacobian(), CMCAMethod::calculateUnscaledElasticities(), CLsodaMethod2::createRootMask(), CStochasticRungeKuttaRI5::createRootMask(), CLsodaMethod2::destroyRootMask(), CStochasticRungeKuttaRI5::destroyRootMask(), CILDMMethod::deuflhard(), CTrajAdaptiveSA::doSingleTauLeapStep(), CLyapWolfMethod::evalF(), CTimeSensLsodaMethod::evalF(), CHybridMethodODE45::evalF(), CLsodaMethod::evalF(), CLsodaMethod2::evalF(), CRadau5Method::evalF(), CTrajectoryMethodDsaLsodar::evalF(), CStochasticRungeKuttaRI5::evalRate(), CLsodaMethod2::evalRoot(), CAnalyticsTask::eventCallBack(), CCrossSectionTask::eventCallBack(), CHybridMethodODE45::fireReaction(), CHybridMethodODE45::integrateDeterministicPart(), CHybridNextReactionRKMethod::integrateDeterministicPart(), CTrajectoryMethodDsaLsodar::integrateDeterministicPart(), CTimeSensMethod::output(), CTrajectoryMethod::output(), CLyapTask::process(), CTimeSensTask::process(), CTSSATask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CSteadyStateTask::process(), CTSSATask::processStep(), CTimeSensTask::processStep(), CTrajectoryTask::processStep(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), CCopasiTask::restore(), CSteadyStateTask::restore(), CMathEvent::setTargetValues(), CStochMethod::start(), CTauLeapMethod::start(), CTrajAdaptiveSA::start(), CTrajectoryMethodDsaLsodar::start(), CCSPMethod::start(), CTimeSensLsodaMethod::stateChange(), CLsodaMethod::stateChange(), CRadau5Method::stateChange(), CStochDirectMethod::stateChange(), CCSPMethod::step(), CILDMMethod::step(), CILDMModifiedMethod::step(), CTimeSensLsodaMethod::step(), CHybridMethod::step(), CLsodaMethod::step(), CTauLeapMethod::step(), CNewtonMethod::targetFunction(), and CHybridMethod::updatePriorityQueue().
void CMathContainer::updateTransientDataValues | ( | ) |
Calculate all transient data values. The simulated values need to be calculated beforehand.
References applyUpdateSequence(), and mTransientDataObjectSequence.
Referenced by CModel::applyInitialValues(), CSteadyStateMethod::isEquilibrium(), CTimeSensTask::process(), CAnalyticsTask::process(), CCrossSectionTask::process(), CSteadyStateTask::process(), CTrajectoryTask::processTrajectory(), CTrajectoryTask::processValues(), CCopasiTask::restore(), and CMCAMethod::scaleMCA().
|
private |
The sequence of updates needed to apply the initial values
Referenced by allocate(), applyInitialValues(), createApplyInitialValuesSequence(), and getApplyInitialValuesSequence().
|
private |
The compile time of the container needed to indicate whther copies are out sync.
Referenced by compile(), and operator==().
|
private |
The initial state contains additionally all computed internal values
Referenced by getCompleteInitialState(), relocate(), and setCompleteInitialState().
|
private |
Structure of pointers used for creating discontinuities.
Referenced by compileEvents(), initializeDiscontinuousCreationPointer(), and replaceDiscontinuousNode().
|
private |
A map from data objects to math objects
Referenced by allocate(), getMathObject(), initializeAtolVector(), map(), and move().
|
private |
A map from data objects values to math objects
Referenced by allocate(), createNodeFromObject(), createSynchronizeInitialValuesSequence(), getDataObject(), and sanitizeDataValue2DataObject().
|
private |
A map from data objects values to math objects
Referenced by allocate(), getMathObject(), map(), and move().
|
private |
Referenced by createDelays(), createUpdateSimulationValuesSequence(), getDelayLags(), initializePointers(), and relocate().
|
private |
A vector of delays
Referenced by allocate(), compile(), createDelays(), relocate(), updateHistoryValues(), and ~CMathContainer().
|
private |
Referenced by compile(), createDelays(), initializePointers(), and relocate().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
A vector of data events for discontinuities
Referenced by allocate(), compile(), compileEvents(), createDiscontinuityDataEvent(), and initializeEvents().
|
private |
A map from the infix of the expression of a discontinuity to the object representing it.
Referenced by compile(), and replaceDiscontinuousNode().
|
private |
|
private |
Referenced by initializePointers(), and relocate().
|
private |
Referenced by createUpdateSimulationValuesSequence(), ignoreDiscontinuityEvent(), initializePointers(), and relocate().
|
private |
Referenced by createUpdateSimulationValuesSequence(), initializePointers(), and relocate().
|
private |
|
private |
Referenced by analyzeRoots(), createUpdateSimulationValuesSequence(), ignoreDiscontinuityEvent(), initializePointers(), and relocate().
|
private |
A vector containing all math events.
Referenced by addAnalysisEvent(), allocate(), analyzeRoots(), applyInitialValues(), compileEvents(), createUpdateSequences(), getEvents(), ignoreDiscontinuityEvent(), initializeDiscontinuousCreationPointer(), initializeEvents(), processRoots(), relocate(), removeAnalysisEvent(), and ~CMathContainer().
|
private |
Referenced by applyInitialValues(), ignoreDiscontinuityEvent(), initializePointers(), processRoots(), and relocate().
|
private |
|
private |
|
private |
Referenced by addAnalysisEvent(), applyInitialValues(), createApplyInitialValuesSequence(), createDelays(), createDependencyGraphs(), createSynchronizeInitialValuesSequence(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), createValueChangeProhibited(), getInitialValuePointer(), getValuePointer(), ignoreDiscontinuityEvent(), initializePointers(), pushAllTransientValues(), relocate(), and removeAnalysisEvent().
|
private |
Referenced by calculateElasticityDependencies(), getFluxes(), getMathReaction(), initializePointers(), and relocate().
|
private |
The full history needed for the calculation of delayed differential equations
Referenced by createDelays(), getHistory(), relocate(), setHistory(), and updateHistoryValues().
|
private |
The reduced history needed for the calculation of delayed differential equations
Referenced by getHistory(), relocate(), setHistory(), and updateHistoryValues().
|
private |
Dependency graph for initial value calculations
Referenced by addAnalysisEvent(), addAnalysisObject(), allocate(), createDependencyGraphs(), createSynchronizeInitialValuesSequence(), createValueChangeProhibited(), getInitialDependencies(), relocate(), removeAnalysisEvent(), removeAnalysisObject(), and removeDataObject().
|
private |
Referenced by ignoreDiscontinuityEvent(), initializePointers(), and relocate().
|
private |
Referenced by addAnalysisEvent(), createValueChangeProhibited(), initializePointers(), relocate(), and removeAnalysisEvent().
|
private |
|
private |
Referenced by initializePointers(), and relocate().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
Referenced by initializePointers(), pushInitialState(), and relocate().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
The initial state contains also all fixed values
Referenced by fetchInitialState(), getInitialState(), initializeAtolVector(), relocate(), and setInitialState().
|
private |
All initial state values (intensive and extensive)
Referenced by allocate(), createSynchronizeInitialValuesSequence(), getInitialStateObjects(), and relocate().
|
private |
The set of objects which determine the initial state of the model based on extensive values
Referenced by allocate(), createApplyInitialValuesSequence(), createSynchronizeInitialValuesSequence(), and relocate().
|
private |
The set of objects which determine the initial state of the model based on intensive values
Referenced by allocate(), createSynchronizeInitialValuesSequence(), and relocate().
|
private |
Referenced by initializePointers(), pushInitialState(), and relocate().
|
private |
Referenced by initializePointers(), relocate(), and resetNoise().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
A flag indicating whether the model is autonomous.
Referenced by createUpdateSimulationValuesSequence(), and isAutonomous().
|
private |
The objects from which the noise originates
Referenced by addNoiseInputObject(), compileObjects(), getCountNoise(), getNoiseInputObjects(), and relocate().
|
private |
The noise contains the mean values for entities of type ODE, Independent
Referenced by getNoise(), and relocate().
|
private |
The sequence of updates needed to calculate all noise values based on the assumption that all state values may have changed
Referenced by allocate(), createUpdateSimulationValuesSequence(), getNoiseSequence(), and updateNoiseValues().
|
private |
The sequence of updates needed to calculate all noise values based on the assumption that all reduced state values may have changed
Referenced by allocate(), createUpdateSimulationValuesSequence(), getNoiseSequence(), and updateNoiseValues().
|
private |
The total number of ignored event roots.
Referenced by compileEvents(), and ignoreDiscontinuityEvent().
|
private |
A vector containing all math objects.
Referenced by addAnalysisEvent(), addAnalysisObject(), allocate(), compile(), compileObjects(), createApplyInitialValuesSequence(), createDelays(), createDependencyGraphs(), createSynchronizeInitialValuesSequence(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), createValueChangeProhibited(), fetchInitialState(), finishResize(), getMathObject(), initializeDiscontinuousCreationPointer(), initializePointers(), map(), move(), relocateObject(), relocateUpdateSequence(), and removeAnalysisObject().
|
private |
Referenced by finishResize(), relocate(), relocateObject(), and relocateUpdateSequence().
|
private |
Referenced by finishResize(), relocate(), and relocateValue().
|
private |
Referenced by getParticleFluxes(), initializePointers(), and relocate().
|
private |
Referenced by copyBranch(), and createSynchronizeInitialValuesSequence().
|
private |
A pointer to the data model which mathematics are contained
Referenced by allocate(), compile(), compileEvents(), createDiscontinuityEvents(), createValueChangeProhibited(), getCN(), getMathObject(), getModel(), getObject(), getObjectFromCN(), getStoichiometry(), initializeEvents(), initializeObjects(), and operator==().
|
private |
Referenced by move(), and ~CMathContainer().
|
private |
Referenced by applyInitialValues(), getProcessQueue(), getProcessQueueExecutionTime(), processQueue(), relocate(), and ~CMathContainer().
|
private |
|
private |
Referenced by getRandomGenerator(), and ~CMathContainer().
|
private |
The sequence of updates needed to calculate all priorities on the assumption that all state values may have changed
Referenced by allocate(), createUpdateSimulationValuesSequence(), and updatePriorityValues().
|
private |
Referenced by getPropensities(), initializePointers(), and relocate().
|
private |
Referenced by move(), and ~CMathContainer().
|
private |
Referenced by getRandomObject().
|
private |
The rate contains derivatives for values of type EventTarget, Time, ODE, Independent, and Dependent
Referenced by calculateJacobian(), calculateJacobianDependencies(), calculateRootDerivatives(), calculateRootJacobian(), getRate(), and relocate().
|
private |
The reduced rate derivatives for contains values of type EventTarget, Time, ODE, Independent
Referenced by getRate(), and relocate().
|
private |
Referenced by initializePointers(), relocate(), and resetNoise().
|
private |
Referenced by initializePointers(), relocate(), and resetNoise().
|
private |
A vector containing all math reactions.
Referenced by allocate(), compile(), getMathReaction(), getReactions(), relocate(), and ~CMathContainer().
|
private |
The set of objects which determine the transient state of the reduced model
Referenced by allocate(), createUpdateSimulationValuesSequence(), getStateObjects(), and relocate().
|
private |
A map of root counts to math events.
Referenced by allocate(), compile(), compileEvents(), and replaceDiscontinuousNode().
The root derivatives calculated for mRootDerivativesState
Referenced by analyzeRoots(), and applyInitialValues().
The state for which the root derivatives are calculated
Referenced by analyzeRoots(), and applyInitialValues().
|
private |
A vector of Boolean values indicating whether a root is changing continuously or only during discrete event processing.
Referenced by analyzeRoots(), getRootIsDiscrete(), ignoreDiscontinuityEvent(), and relocate().
|
private |
A vector of Boolean values indicating whether a root is non time dependent.
Referenced by analyzeRoots(), getRootIsTimeDependent(), ignoreDiscontinuityEvent(), and relocate().
|
private |
A vector of pointers to all objects values CMathEventN::CTrigger::CRootProcessor
Referenced by analyzeRoots(), applyInitialValues(), getRootProcessors(), ignoreDiscontinuityEvent(), processRoots(), and relocate().
|
private |
The sequence of updates needed to calculate all roots on the assumption that all state values may have changed
Referenced by createUpdateSimulationValuesSequence(), and updateRootValues().
|
private |
The sequence of updates needed to calculate all roots on the assumption that all state values may have changed
Referenced by createUpdateSimulationValuesSequence(), and updateRootValues().
|
private |
The objects which are required to be up to date for simulation of the full model, i.e., the right hand side of ODEs, rates of species determined by reaction, and event roots.
Referenced by allocate(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), getSimulationUpToDateObjects(), and relocate().
|
private |
The sequence of updates needed to calculate all simulation required values based on the assumption that all state values may have changed
Referenced by allocate(), createUpdateSimulationValuesSequence(), getSimulationValuesSequence(), and updateSimulatedValues().
|
private |
The sequence of updates needed to calculate all simulation required values based on the assumption that all state values may have changed
Referenced by allocate(), createUpdateSimulationValuesSequence(), getSimulationValuesSequence(), and updateSimulatedValues().
|
private |
Structure containing all the important size information
Referenced by addAnalysisEvent(), addAnalysisObject(), allocate(), analyzeRoots(), calculateElasticityDependencies(), calculateJacobian(), calculateJacobianDependencies(), calculateRootDerivatives(), calculateRootJacobian(), createDelays(), createRelocations(), createUpdateSimulationValuesSequence(), getCountAssignments(), getCountDependentSpecies(), getCountFixed(), getCountFixedEventTargets(), getCountIndependentSpecies(), getCountODEs(), ignoreDiscontinuityEvent(), initializeAtolVector(), initializeObjects(), processRoots(), relocate(), removeAnalysisEvent(), removeAnalysisObject(), resize(), and setInitialState().
|
private |
The state contains values of type EventTarget, Time, ODE, Independent, and Dependent
Referenced by analyzeRoots(), applyInitialValues(), calculateElasticityDependencies(), calculateJacobian(), calculateJacobianDependencies(), calculateRootJacobian(), createUpdateSimulationValuesSequence(), fetchState(), getState(), isStateValid(), processRoots(), pushState(), relocate(), setInitialState(), and setState().
|
private |
The reduced state contains values of type EventTarget, Time, ODE, Independent
Referenced by getState(), and relocate().
|
private |
The set of objects which determine the transient state of the model
Referenced by allocate(), areObjectsConstant(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), getStateObjects(), and relocate().
|
private |
The sequence of updates needed to synchronize the initial values based on extensive values, i.e., species amounts
Referenced by allocate(), createSynchronizeInitialValuesSequence(), getSynchronizeInitialValuesSequence(), and updateInitialValues().
|
private |
The sequence of updates needed to synchronize the initial values based on intensive values, i.e., species concentrations.
Referenced by allocate(), createSynchronizeInitialValuesSequence(), getSynchronizeInitialValuesSequence(), and updateInitialValues().
|
private |
Referenced by getTotalMasses(), initializePointers(), and relocate().
|
private |
The sequence of updates needed to calculate all objects which have data object associated on the assumption that all state values may have changed
Referenced by allocate(), createUpdateAllTransientDataValuesSequence(), getTransientDataValueSequence(), and updateTransientDataValues().
|
private |
Dependency graph for transient value calculations
Referenced by addAnalysisEvent(), allocate(), analyzeRoots(), areObjectsConstant(), calculateElasticityDependencies(), calculateJacobianDependencies(), compile(), createApplyInitialValuesSequence(), createDependencyGraphs(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), createValueChangeProhibited(), getTransientDependencies(), relocate(), removeAnalysisEvent(), removeAnalysisObject(), and removeDataObject().
|
private |
Referenced by initializePointers(), and relocate().
|
private |
A map from the discontinuity trigger infix of to event representing it.
Referenced by compile(), and replaceDiscontinuousNode().
|
private |
Pointers to all update sequences associated with this container;
Referenced by allocate(), deregisterUpdateSequence(), registerUpdateSequence(), relocate(), and ~CMathContainer().
|
private |
A set of object for which changing the initial value is prohibeted;
Referenced by createSynchronizeInitialValuesSequence(), createUpdateSimulationValuesSequence(), createValueChangeProhibited(), getValueChangeProhibited(), and relocate().
|
private |
Referenced by addAnalysisEvent(), allocate(), applyInitialValues(), createUpdateAllTransientDataValuesSequence(), createUpdateSimulationValuesSequence(), finishResize(), getInitialValuePointer(), getMathObject(), getValuePointer(), getValues(), ignoreDiscontinuityEvent(), initializeDiscontinuousCreationPointer(), initializePointers(), move(), pushAllTransientValues(), relocate(), relocateValue(), and setValues().