next up previous index
Next: Probabilities Class Up: Model Components Previous: Model Components   Index


Utilities Class

The Utilities class is used for computing utilities in discrete choice modeling. In Opus opus_core there is one Utilities class implemented - linear_utilities - that computes linear utilities:

$\displaystyle U_{ni} = \sum_{j=1}^J \beta_{ij}x_{nij}\,.
$

Here $ i=1,\dots,I$ denotes the $ I$ different alternatives, $ n$ is an index for observations (agents), $ x$ denotes values of $ J$ variables (including constants) for each agent and alternative, and $ \beta$ is a coefficient matrix of size $ I\times J$. The run() method gets a 3-d array of data and a 2-d array of coefficients as arguments and returns a 2-d array of utilities.


next up previous index
Next: Probabilities Class Up: Model Components Previous: Model Components   Index
info (at) urbansim.org