7.5. Module pyActivity

7.5.1. Overview

7.5.2. Classes

daeSimulation

daeOptimization

class daeSimulation

Initialization methods

__init__((object)self) None
Initialize((daeSimulation)self, (object)daeSolver, (object)dataReporter, (object)log[, (bool)calculateSensitivities=False[, (str)jsonRuntimeSettings='']]) None
SolveInitial((daeSimulation)self) None
m
model
Model
DAESolver
Log
DataReporter
AbsoluteTolerances
RelativeTolerance
TotalNumberOfVariables
NumberOfEquations

Loading/storing the initialization data

LoadInitializationValues((daeSimulation)self, (str)filename) None
StoreInitializationValues((daeSimulation)self, (str)filename) None

Clean up methods

CleanUpSetupData((daeSimulation)self) None
Finalize((daeSimulation)self) None

Simulation setup methods

SetUpParametersAndDomains((daeSimulation)self) None
SetUpVariables((daeSimulation)self) None

Optimization setup methods

SetUpOptimization((daeSimulation)self) None
CreateInequalityConstraint((daeSimulation)self, (str)description) daeOptimizationConstraint
CreateEqualityConstraint((daeSimulation)self, (str)description) daeOptimizationConstraint
SetContinuousOptimizationVariable((daeSimulation)self, (daeVariable)variable, (float)lowerBound, (float)upperBound, (float)defaultValue) daeOptimizationVariable

SetContinuousOptimizationVariable( (daeSimulation)self, (daeVariable)variable, (quantity)qlowerBound, (quantity)qupperBound, (quantity)qdefaultValue) -> daeOptimizationVariable

SetContinuousOptimizationVariable( (daeSimulation)self, (adouble)ad, (float)lowerBound, (float)upperBound, (float)defaultValue) -> daeOptimizationVariable

SetContinuousOptimizationVariable( (daeSimulation)self, (adouble)ad, (float)qlowerBound, (float)qupperBound, (float)qdefaultValue) -> daeOptimizationVariable

SetIntegerOptimizationVariable((daeSimulation)self, (daeVariable)variable, (int)lowerBound, (int)upperBound, (int)defaultValue) daeOptimizationVariable

SetIntegerOptimizationVariable( (daeSimulation)self, (adouble)ad, (int)lowerBound, (int)upperBound, (int)defaultValue) -> daeOptimizationVariable

SetBinaryOptimizationVariable((daeSimulation)self, (daeVariable)variable, (bool)defaultValue) daeOptimizationVariable

SetBinaryOptimizationVariable( (daeSimulation)self, (adouble)ad, (bool)defaultValue) -> daeOptimizationVariable

OptimizationVariables
Constraints
NumberOfObjectiveFunctions
ObjectiveFunction

Parameter estimation setup methods

SetUpParameterEstimation((daeSimulation)self) None
SetMeasuredVariable((daeSimulation)self, (daeVariable)variable) daeMeasuredVariable

SetMeasuredVariable( (daeSimulation)self, (adouble)ad) -> daeMeasuredVariable

SetInputVariable((daeSimulation)self, (daeVariable)variable) daeVariableWrapper

SetInputVariable( (daeSimulation)self, (adouble)ad) -> daeVariableWrapper

SetModelParameter((daeSimulation)self, (daeVariable)variable, (float)lowerBound, (float)upperBound, (float)defaultValue) daeOptimizationVariable

SetModelParameter( (daeSimulation)self, (adouble)ad, (float)lowerBound, (float)upperBound, (float)defaultValue) -> daeOptimizationVariable

InputVariables
MeasuredVariables
ModelParameters

Parameter estimation setup methods

SetUpSensitivityAnalysis((daeSimulation)self) None

Operating procedures methods

Run((daeSimulation)self) None
ReRun((daeSimulation)self) None
Pause((daeSimulation)self) None
Resume((daeSimulation)self) None
ActivityAction
Integrate((daeSimulation)self, (daeeStopCriterion)stopCriterion[, (bool)reportDataAroundDiscontinuities=True]) float
IntegrateForTimeInterval((daeSimulation)self, (float)timeInterval, (daeeStopCriterion)stopCriterion[, (bool)reportDataAroundDiscontinuities=True]) float
IntegrateUntilTime((daeSimulation)self, (float)time, (daeeStopCriterion)stopCriterion[, (bool)reportDataAroundDiscontinuities=True]) float
IntegrateForOneStep((daeSimulation)self, (daeeStopCriterion)stopCriterion[, (bool)reportDataAroundDiscontinuities=True]) float
Reinitialize((daeSimulation)self) None
Reset((daeSimulation)self) None
CurrentTime
TimeHorizon
ReportingInterval
NextReportingTime
ReportingTimes

Data reporting methods

ReportData((daeSimulation)self, (float)currentTime) None
ReportTimeDerivatives
ReportSensitivities

Various information

IndexMappings
InitialConditionMode
SimulationMode
VariableTypes
property ActiveEquationSetMemory
property ActiveEquationSetNodeCount
property CalculateSensitivities
property CallStats
property ComputeStackEvaluator
property DOFs
DoDataPartitioning((daeSimulation)self, (daeEquationsIndexes)equationsOverallIndexes, (map_ulong_ulong)mapOverallBlockIndexes) None

DoDataPartitioning( (daeSimulation)self, (daeEquationsIndexes)equationsOverallIndexes, (map_ulong_ulong)mapOverallBlockIndexes) -> None

DoPostProcessing((daeSimulation)self) None

DoPostProcessing( (daeSimulation)self) -> None

property EquationExecutionInfos
property EvaluationMode
ExportComputeStackStructs((daeSimulation)self, (str)filenameComputeStacks, (str)filenameJacobianIndexes[, (int)startEquationIndex=0[, (int)endEquationIndex=-1[, (dict)bi_to_bi_local={}]]]) None

ExportComputeStackStructs( (daeSimulation)self, (str)filenameComputeStacks, (str)filenameJacobianIndexes, (list)equationIndexes, (dict)bi_to_bi_local) -> None

GetOpenCSModelData((daeSimulation)self) dict
IntegrateForOneStep((daeSimulation)self, (daeeStopCriterion)stopCriterion[, (bool)reportDataAroundDiscontinuities=True]) float
property IsInitialized
property IsSolveInitial
property JSONRuntimeSettings
property LastSatisfiedCondition
PrintStats((daeSimulation)arg1) None
property ReportDataAroundDiscontinuities
property ReportSensitivities
property ReportTimeDerivatives
property SensitivityDataDirectory
SetComputeStackEvaluator((daeSimulation)self, (csComputeStackEvaluator_t)computeStackEvaluator) None
SetNumberOfObjectiveFunctions((daeSimulation)self, (int)numberOfOptimizationFunctions) None
SetSensitivityParameter((daeSimulation)self, (daeVariable)variable) daeOptimizationVariable

SetSensitivityParameter( (daeSimulation)self, (adouble)ad) -> daeOptimizationVariable

property StopAtModelDiscontinuity
property TimeDerivatives
property Values
class daeOptimization
__init__((object)self) None
Initialize((daeOptimization)self, (object)simulation, (object)nlpSolver, (object)daeSolver, (object)dataReporter, (object)log[, (str)initializationFile='']) None
Run((daeOptimization)self) None
Finalize((daeOptimization)self) None
EndIterationRun((daeOptimization)self, (int)iteration) None

EndIterationRun( (daeOptimization)self, (int)iteration) -> None

property Simulation
StartIterationRun((daeOptimization)self, (int)iteration) None

StartIterationRun( (daeOptimization)self, (int)iteration) -> None

7.5.3. Enumerations

daeeStopCriterion

daeeActivityAction

daeeSimulationMode

class daeeStopCriterion
eDoNotStopAtDiscontinuity = pyActivity.daeeStopCriterion.eDoNotStopAtDiscontinuity
eStopAtModelDiscontinuity = pyActivity.daeeStopCriterion.eStopAtModelDiscontinuity
class daeeActivityAction
eAAUnknown = pyActivity.daeeActivityAction.eAAUnknown
ePauseActivity = pyActivity.daeeActivityAction.ePauseActivity
eRunActivity = pyActivity.daeeActivityAction.eRunActivity
class daeeSimulationMode
eOptimization = pyActivity.daeeSimulationMode.eOptimization
eParameterEstimation = pyActivity.daeeSimulationMode.eParameterEstimation
eSimulation = pyActivity.daeeSimulationMode.eSimulation