amici.ode_export.ConservationLaw¶
-
class
amici.ode_export.ConservationLaw(identifier, name, value)[source]¶ A conservation law defines the absolute the total amount of a (weighted) sum of states
-
__init__(identifier, name, value)[source] Create a new ConservationLaw instance.
- Parameters
identifier (
sympy.core.symbol.Symbol) – unique identifier of the ConservationLawname (
str) – individual name of the ConservationLaw (does not need to be unique)value (
sympy.core.expr.Expr) – formula (sum of states)
Methods Summary
__init__(identifier, name, value)Create a new ConservationLaw instance.
get_id()ModelQuantity identifier
get_name()ModelQuantity name
get_val()ModelQuantity value
Methods
-
__init__(identifier, name, value)[source]¶ Create a new ConservationLaw instance.
- Parameters
identifier (
sympy.core.symbol.Symbol) – unique identifier of the ConservationLawname (
str) – individual name of the ConservationLaw (does not need to be unique)value (
sympy.core.expr.Expr) – formula (sum of states)
-
get_id()¶ ModelQuantity identifier
- Return type
- Returns
identifier of the ModelQuantity
-
get_val()¶ ModelQuantity value
- Return type
- Returns
value of the ModelQuantity
-