Skip to content

simulation.simulation

Abstract base simulation.

Simulation

Simulation(sid, algorithm, name=None)

Bases: BaseObject

Simulation class.

A simulation is the execution of some defined algorithm(s). Simulations are described differently depending on the type of simulation experiment to be performed.

Simulation is an abstract class and serves as parent class for the different types of simulations.

Construct Simulation.

The mandatory attribute algorithm defines the simulation algorithms used for the execution of the simulation. The algorithms are defined via the Algorithm class.

Analysis

Analysis(sid, algorithm, name=None)

Bases: Simulation

Analysis class.

The Analysis represents any sort of analysis or simulation of a Model, entirely defined by its child Algorithm.

SteadyState

SteadyState(sid, algorithm, name=None)

Bases: Simulation

SteadyState class.

The SteadyState represents a steady state computation (as for example implemented by NLEQ or Kinsolve).

OneStep

OneStep(sid, step, algorithm, name=None)

Bases: Simulation

OneStep class.

The OneStep class calculates one further output step for the model from its current state.

Construct OneStep.

UniformTimeCourse

UniformTimeCourse(
    sid,
    algorithm,
    start,
    end,
    steps,
    initial_time,
    name=None,
)

Bases: Simulation

UniformTimeCourse class.

The UniformTimeCourse class calculates a time course output with equidistant time points.

Construct UniformTimeCourse.

AbstractSim

Bases: ABC

AbstractSim.

Base class of simulations.

normalize abstractmethod

normalize(uinfo)

Normalize simulation.

add_model_changes abstractmethod

add_model_changes(model_changes)

Add model changes to model.

to_dict

to_dict()

Convert to dictionary.