The ModelSolver Toolkit
Solving Economic Models in Scala
The
ModelSolver Toolkit is a collection of
Java and
Scala libraries for solving
economic models. The particular type of model they are aimed at are macroeconomic models with heterogeneous
agents having expectations which are, at least to some degree, rational and model-consistent. The canonical
example is the model of
Krusell & Smith (1998).
All the libraries are open-source and provided under an
MIT license.
Numerics and Numerics-Scala
The first two libraries are not specific to economic models and provide two pieces of functionality useful when
solving such models: a
multidimensional rectangular array with flexible operations for working with the
arrays and, for instance, applying operations along particular dimensions of such arrays; and a
function class for representing mathematical functions, with an implementation as an interpolant using
the rectangular arrays.
Numerics implements the functionality and provides a
Java API.
Numerics-Scala wraps the
library in *Scala* and provides a more intuitive API.
ModelSolver and ModelSolver-Scala
ModelSolver builds on the Numerics library to
provide a framework for solving models. Again it is implemented in Java, with a Scala companion library,
ModelSolver-Scala which makes the library
easier to use in Scala.