Home | Trees | Indices | Help |
|
---|
|
object --+ | Model
General-purpose Hybrid and Non-Hybrid Model abstract class.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
_needKeys =
|
|||
_optionalKeys =
|
|||
_querykeys =
|
|||
_setkeys =
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Record parameter info locally, for future queries. Internal use only. |
type = 'spec', 'auxspec', 'auxfnspec', 'events', or 'modelspec' (leave blank for the first *four* together). 'spec', 'auxspec' and 'auxfnspec', 'events' refer to the compiled target language code for the specifications. 'modelspec' refers to the pre-compiled abstract specifications of the model. |
Return info about Model set-up. Valid query key: 'pars', 'parameters', 'events', 'submodels', 'ics', 'initialconditions', 'vars', 'variables', 'auxvars', 'auxvariables', 'vardomains', 'pardomains', 'abseps' |
Set specific parameters of Model. These will get passed on to all Generators/sub-models that support these keys unless the restrictDSList argument is set (only applies to keys algparams, checklevel, and abseps). Permitted keys: 'pars', 'algparams', 'checklevel', 'abseps', 'ics', 'inputs', 'tdata', 'restrictDSlist', 'globalt0', 'verboselevel', 'inputs_t0' |
Evaluate position of hybrid trajectory at time t. if optional argument asmap == True then t must be an integer in [0, #segments]. |
Returns endpoint of specified trajectory as Point. trajname: name of selected trajectory end: (default=1) index of trajectory endpoint. 0 => first, 1 => last |
Returns end time of specified trajectory. trajname: name of selected trajectory end: (default=1) index of trajectory endpoint. 0 => first, 1 => last |
Force variables to be the observables in the Model. May also promote auxiliary variables. |
Force variables to become internal variables in the Model. May also promote auxiliary variables. |
str(x)
|
str(x)
|
Rename stored trajectory. Force option (default False) will overwrite any existing trajectory with the new name. |
Return the named trajectory's Generator-flagged event times. events argument can be singleton string name of an event, returning the event data, or events can be a list of event names, returning a dictionary of event name -> event data. Event names should use hierarchical naming convention, if applicable. |
Return the named trajectory's Generator-flagged events. events argument can be singleton string name of an event, returning the event data, or events can be a list of event names, returning a dictionary of event name -> event data. Event names should use hierarchical naming convention, if applicable. |
Returns value of given algorithmic parameter for selected sub-model. target -- name of sub-model in model (cannot be list). par -- name of algorithmic parameter. idx -- (optional) index into value if algorithmic parameter val is a list of values. |
Set value of algorithmic parameter in a specific generator. target -- name or list of generators in model. par -- name of algorithmic parameter is to be set. val -- value to which the algorithmic parameter is to be set. if target is a list, then algorithmic pararameter 'par' is set to 'val' for every generator in the list, if par exists for that generator. WARNING: THIS FUNCTION IS NOT 'SAFE' -- IT DOES NOT CHECK THAT VALS ARE APPROPRIATE TO PARAMETERS!!! |
Uniformly sample the named trajectory over range indicated, including any event points. (e.g. use this call for plotting purposes.) Outputs a Pointset from the trajectory over a given range. Arguments: trajname Name of stored trajectory to sample coords (optional) list of variable names to include in output dt (optional) step size to use in sampling of independent variable If not given, the underlying time mesh is used, if available. tlo (optional) Start value for independent variable, default 0 thi (optional) End value for independent variable, default last value doEvents (optional) include any event points in output, default True precise (optional) The default value, False, causes an attempt to use the underlying mesh of the trajectory to return a Pointset more quickly. Currently, this can only be used for trajectories that have a single segment (non-hybrid). |
List of events in target which are terminal/non-terminal according to value of flagVal. target -- name of generators in model (cannot be list) flagVal -- True (terminal) or False (non-terminal) |
Set event in a specific generator to be (non)terminal. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) flagVal -- True (event terminal) or False (event non-terminal) flagVal is applied to every listed event in every listed generator, if events and generators exist. |
List of events in target which are active/inactive according to value of flagVal. target -- name of generators in model (cannot be list) flagVal -- True (active) or False (inactive) |
Set event in a specific generator to be (in)active. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) flagVal -- True (event active) or False (event inactive) flagVal is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified initial conditions. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- dictionary of varnames and initial condition values val is applied to every listed event in every listed generator, if events and generators exist. If a varname in the val dict does not exist in a specified generator/event, then it is skipped. |
Set event in a specific generator to be (im)precise. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) flagVal -- True (event precise) or False (event imprecise) flagVal is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified event delay. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- event delay (int, float >= 0) val is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified event interval. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- event interval (int, float >= 0) val is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified event tolerance. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- event tolerance (int, float >= 0) val is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified direction code. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- direction code (-1: decreasing, 1: increasing, 0: either direction) val is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified start time. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- start time (float, int) val is applied to every listed event in every listed generator, if events and generators exist. |
Set event in a specific generator to have specified bisect limit. target -- name or list of names of generators in model. eventTarget -- name or list of names of events in specified generator(s) val -- bisect limit (int > 0) val is applied to every listed event in every listed generator, if events and generators exist. |
Internal method to set all sub-models flag for being part of a hybrid trajectory computation. Useful to indicate that high level events should not be reset when a Generator is reused between hybrid trajectory segments. |
|
_optionalKeys
|
_querykeys
|
_setkeys
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Dec 2 23:44:21 2012 | http://epydoc.sourceforge.net |