dcegm.interfaces.sol_interface¶
Classes¶
Module Contents¶
- class dcegm.interfaces.sol_interface.model_solved(model, params, value, policy, endog_grid)¶
- params¶
- value¶
- policy¶
- endog_grid¶
- model¶
- model_config¶
- model_structure¶
- model_funcs¶
- model_specs¶
- specs_without_jax¶
- alternative_sim_funcs¶
- set_alternative_sim_funcs(alternative_sim_specifications, alternative_specs=None)¶
- simulate(states_initial, seed)¶
- policy_and_value_for_states_and_choices(states, choices)¶
Get the value and policy for a given state and choice.
- Parameters:
states – The state for which to get the value and policy.
choices – The choice for which to get the value and policy.
- Returns:
A tuple containing the value and policy for the given state and choice.
- value_for_states_and_choices(states, choices)¶
Get the value for a given state and choice.
- Parameters:
states – The state for which to get the value.
choices – The choice for which to get the value.
- Returns:
The value for the given state and choice.
- policy_for_states_and_choices(states, choices)¶
Get the policy for a given state and choice.
- Parameters:
states – The state for which to get the policy.
choices – The choice for which to get the policy.
- Returns:
The policy for the given state and choice.
- get_solution_for_discrete_state_choice(states, choices)¶
Get the solution container for a given discrete state and choice combination.
- Parameters:
states – The state for which to get the solution.
choices – The choice for which to get the solution.
- Returns:
A tuple containing the wealth grid, value grid, and policy grid for the given state and choice.
- choice_probabilities_for_states(states)¶
- choice_values_for_states(states)¶
- choice_policies_for_states(states)¶