| Home | Trees | Indices | Help |
|
|---|
|
|
Constraint --> storage and check of a single constraint equation
Data members:
formula -- right-side of constraint equation (string). When
assigned it is checked for math correctness and updates
the parguess dictionary
parguess -- read-only dictionary of parameter indices and their
estimated initial values. Values are None if they
cannot be estimated.
Private members:
__lhs -- last value of constrained variable passed to guess()
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
initialize the Constraint. formula -- (string) right-side of constraint equation value -- (optional) current value of the variable __init__ raises ControlSyntaxError when formula is incorrect |
evaluate constraint formula parvalues -- dictionary of int parameter indices and float values. returns formula result |
Build lambda function from constraint formula. Lambda function expects dictionary argument. returns lambda function |
guess the initial values of parameters contained in parguess value -- current value of the constrained variable The keys of self.parguess are indices of parameters used in formula, and the values are suggested parameter values (None if they cannot be estimated). returns a copy of self.parguess |
check math and update parguess when formula is assigned
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Fri Apr 10 19:11:00 2009 | http://epydoc.sourceforge.net |