nestedlife

The main module to build a simplelife model.

This module contains only one function build(), which creates a model from source modules and return it.

If this module is run as a script, the build() function is called and the created model is available as model global variable.

Functions

PolsIF_End_inner(t) Number of policies: End of period
PolsSurr(t) Number of policies: Surrender
SurrRateMult(t) Surrender rate multiple (Default: 1)
build([load_saved]) Build a model and return it.
nestedlife.nestedlife.SurrRateMult(t)[source]

Surrender rate multiple (Default: 1)

nestedlife.nestedlife.PolsSurr(t)[source]

Number of policies: Surrender

nestedlife.nestedlife.PolsIF_End_inner(t)[source]

Number of policies: End of period

nestedlife.nestedlife.build(load_saved=False)[source]

Build a model and return it.

Read input data from input.xlsx, create Input space and its subspace and cells and populate them with the data.

Parameters:load_saved – If True, input data is read from nestedlife.mx file instead of input.xlsx, which is saved when build_input is executed last time. Defaults to False