next up previous index
Next: Loading from and Writing Up: Specification Previous: Specification   Index

Initialization

The constructor of EquationSpecification takes the following arguments:
variables
- an array of variable names.
coefficients
- an array of coefficient names.
equations
- an array of equations.
submodels
- an array of submodels.
in_storage
- an object of class Storage for loading specification from a storage.
out_storage
- an object of class Storage for specification output.
The arrays variables and coefficients must have the same size. If submodels and equations are not omitted, they too must have the same lengt as variables. It is interpreted as the $ i$-th variable is connected to the $ i$-th coefficient in the $ i$-th equation (if there are any) in the $ i$-th submodel (if there are any). Values of equations and submodels should be strictly positive integers. Coefficients should have different names across equations, i.e. if there would be $ i$ and $ j$ for which the coefficients[i]==coefficients[j] and equations[i]<>equations[j] and submodels[i]==submodels[j], it would lead to errors when connecting specification and coefficients.

All arguments are set as class properties. in_storage and out_storage are not used in the constructor.


next up previous index
Next: Loading from and Writing Up: Specification Previous: Specification   Index
info (at) urbansim.org