dcegm.pre_processing.model_structure.model_structure

Functions

create_model_structure(model_config, model_funcs)

Create dictionary of discrete state and state-choice objects for each period.

Module Contents

dcegm.pre_processing.model_structure.model_structure.create_model_structure(model_config, model_funcs)

Create dictionary of discrete state and state-choice objects for each period.

Parameters:

options (Dict[str, int]) – Options dictionary.

Returns:

Dictionary containing period-specific

state and state-choice objects, with the following keys: - “state_choice_mat” (np.ndarray) - “idx_state_of_state_choice” (np.ndarray) - “reshape_state_choice_vec_to_mat” (callable) - “transform_between_state_and_state_choice_vec” (callable)

Return type:

dict of np.ndarray