Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
dcegm
dcegm
  • Installation

Guides

  • Practitioner’s Guide
  • Using Templates
  • Minimal Example

Background

  • Limitations
  • Literature
  • The Interface Functions and Solution Container
  • Tutorial: Two-period model
  • Specifying Exogenous Processes
  • Defining Sparsity Conditions

Development

  • Team
  • Roadmap

dcegm API

  • Index
  • API Reference
    • dcegm
      • dcegm.asset_correction
      • dcegm.backward_induction
      • dcegm.check_func_outputs
      • dcegm.cli
      • dcegm.egm
        • dcegm.egm.aggregate_marginal_utility
        • dcegm.egm.interpolate_marginal_utility
        • dcegm.egm.solve_euler_equation
      • dcegm.final_periods
      • dcegm.interfaces
        • dcegm.interfaces.index_functions
        • dcegm.interfaces.inspect_solution
        • dcegm.interfaces.interface
        • dcegm.interfaces.interface_checks
        • dcegm.interfaces.jit_large_arrays
        • dcegm.interfaces.model_class
        • dcegm.interfaces.sol_interface
      • dcegm.interpolation
        • dcegm.interpolation.interp1d
        • dcegm.interpolation.interp2d
        • dcegm.interpolation.interp_interfaces
      • dcegm.law_of_motion
      • dcegm.likelihood
      • dcegm.numerical_integration
      • dcegm.pre_processing
        • dcegm.pre_processing.alternative_sim_functions
        • dcegm.pre_processing.batches
          • dcegm.pre_processing.batches.algo_batch_size
          • dcegm.pre_processing.batches.batch_creation
          • dcegm.pre_processing.batches.last_two_periods
          • dcegm.pre_processing.batches.single_segment
        • dcegm.pre_processing.check_model_config
        • dcegm.pre_processing.check_model_specs
        • dcegm.pre_processing.check_params
        • dcegm.pre_processing.model_functions
          • dcegm.pre_processing.model_functions.process_model_functions
          • dcegm.pre_processing.model_functions.taste_shock_function
          • dcegm.pre_processing.model_functions.upper_evelope_wrapper
        • dcegm.pre_processing.model_structure
          • dcegm.pre_processing.model_structure.deterministic_states
          • dcegm.pre_processing.model_structure.model_structure
          • dcegm.pre_processing.model_structure.shared
          • dcegm.pre_processing.model_structure.state_choice_space
          • dcegm.pre_processing.model_structure.state_space
          • dcegm.pre_processing.model_structure.stochastic_states
        • dcegm.pre_processing.setup_model
        • dcegm.pre_processing.shared
        • dcegm.pre_processing.sol_container
      • dcegm.simulation
        • dcegm.simulation.random_keys
        • dcegm.simulation.sim_utils
        • dcegm.simulation.simulate
        • dcegm.simulation.taste_shocks
      • dcegm.solve_single_period
      • dcegm.toy_models
        • dcegm.toy_models.cons_ret_model_dcegm_paper
          • dcegm.toy_models.cons_ret_model_dcegm_paper.budget_constraint
          • dcegm.toy_models.cons_ret_model_dcegm_paper.params_model_specs_and_config_deaton
          • dcegm.toy_models.cons_ret_model_dcegm_paper.params_model_specs_and_config_ret_model_no_shocks
          • dcegm.toy_models.cons_ret_model_dcegm_paper.params_model_specs_and_config_ret_model_with_shocks
          • dcegm.toy_models.cons_ret_model_dcegm_paper.state_space_objects
          • dcegm.toy_models.cons_ret_model_dcegm_paper.utility_functions
        • dcegm.toy_models.cons_ret_model_stochastic_ltc
          • dcegm.toy_models.cons_ret_model_stochastic_ltc.budget_equation
          • dcegm.toy_models.cons_ret_model_stochastic_ltc.ltc
          • dcegm.toy_models.cons_ret_model_stochastic_ltc.params_model_specs_and_config
        • dcegm.toy_models.cons_ret_model_stochastic_ltc_and_job_offer
          • dcegm.toy_models.cons_ret_model_stochastic_ltc_and_job_offer.ltc_and_job_offer
          • dcegm.toy_models.cons_ret_model_stochastic_ltc_and_job_offer.params_model_specs_and_config
        • dcegm.toy_models.cons_ret_model_with_cont_exp
          • dcegm.toy_models.cons_ret_model_with_cont_exp.budget_constraint
          • dcegm.toy_models.cons_ret_model_with_cont_exp.params_model_specs_and_config
          • dcegm.toy_models.cons_ret_model_with_cont_exp.state_space_objects
        • dcegm.toy_models.cons_ret_model_with_exp
          • dcegm.toy_models.cons_ret_model_with_exp.budget_constraint_with_exp
          • dcegm.toy_models.cons_ret_model_with_exp.params_model_specs_and_config
          • dcegm.toy_models.cons_ret_model_with_exp.state_space_objects
        • dcegm.toy_models.example_model_functions
        • dcegm.toy_models.example_params_model_specs_and_config
    • run_example
    • model_funcs
      • model_funcs.budget_constraint
      • model_funcs.state_space_objects
      • model_funcs.stochastic_processes
      • model_funcs.utility_functions
Back to top
View this page
Edit this page

run_example¶

Attributes¶

params

model_config

model_specs

model_functions

model

model_solved

n_agents

states_initial

sim_df

Module Contents¶

run_example.params¶
run_example.model_config¶
run_example.model_specs¶
run_example.model_functions¶
run_example.model¶
run_example.model_solved¶
run_example.n_agents = 1000¶
run_example.states_initial¶
run_example.sim_df¶
Next
model_funcs
Previous
dcegm.toy_models.example_params_model_specs_and_config
Copyright © 2025, Max Blesch, Sebastian Gsell
Made with Sphinx and @pradyunsg's Furo
On this page
  • run_example
    • Attributes
    • Module Contents
      • params
      • model_config
      • model_specs
      • model_functions
      • model
      • model_solved
      • n_agents
      • states_initial
      • sim_df