DSIMA
|
Abstract agent-based state system. More...
Public Member Functions | |
def | __init__ |
def | run |
def | hasConverged |
Define if the system has converged based on the status variables. More... | |
Static Public Member Functions | |
def | maxDelta |
Get the maximum deviation between two list of values. More... | |
Public Attributes | |
history | |
History of the data. More... | |
eps | |
Numerical accuracy. More... | |
Private Attributes | |
_maxDifference | |
Maximum difference between the two last iterations. More... | |
Static Private Attributes | |
__metaclass__ = ABCMeta | |
Abstract agent-based state system.
A state system is a system where the convergence is based on status variables. The system check global status variable referenced in a list of variable reference in data.general['statusVariables']. The personal status variable of StateAgent are also checked.
def __init__ | ( | self, | |
maximumIterations = 1000 , |
|||
accuracy = 0.0001 |
|||
) |
def hasConverged | ( | self | ) |
Define if the system has converged based on the status variables.
|
static |
Get the maximum deviation between two list of values.
v1 | List of values. |
v2 | List of values. |
def run | ( | self | ) |
|
staticprivate |
|
private |
Maximum difference between the two last iterations.
eps |
Numerical accuracy.
history |
History of the data.