cge_modeling.base.cge.CGEModel#

class cge_modeling.base.cge.CGEModel(coords=None, variables=None, parameters=None, equations=None, numeraire=None, parse_equations_to_sympy=True)#

Methods

CGEModel.__init__([coords, variables, ...])

Main interface for interacting with the a CGE model.

CGEModel.add_equations(equations[, overwrite])

CGEModel.add_parameter(parameter[, overwrite])

CGEModel.add_parameters(parameters[, overwrite])

CGEModel.add_pytensor_equation(equation[, ...])

CGEModel.add_sympy_equation(equation[, ...])

CGEModel.add_variable(variable[, overwrite])

CGEModel.add_variables(variables[, overwrite])

CGEModel.calibrate([data, max_iter, name])

CGEModel.check_for_equilibrium(data[, tol, ...])

Verify if a given state of the model is an equilibrium.

CGEModel.check_initialization()

CGEModel.check_shape(data, name)

CGEModel.equation_table([display])

CGEModel.finalize_calibration()

CGEModel.generate_SAM(param_dict, ...[, ...])

Generate a Social Accounting Matrix (SAM) from the model parameters.

CGEModel.get([names])

Retrieve a list of model objects (variables or parameters) from the model by name.

CGEModel.get_parameter(param_name)

CGEModel.get_parameters([param_names])

CGEModel.get_shape(name)

CGEModel.get_symbol([names])

CGEModel.get_unpacked_parent_object(name)

CGEModel.get_variable(var_name)

CGEModel.get_variables([var_names])

CGEModel.initialize_parameter(name[, value])

CGEModel.print_residuals(res)

CGEModel.simulate(initial_state[, ...])

Simulate a shock to the model economy by computing the equilibrium state of the economy at the provided post-shock values.

CGEModel.summary([variables, results, ...])

Attributes

equation_names

equations

parameter_names

parameters

unpacked_equation_names

unpacked_equation_symbols

unpacked_equations

unpacked_parameter_names

unpacked_parameter_symbols

unpacked_parameters

unpacked_variable_names

unpacked_variable_symbols

unpacked_variables

variable_names

variables