# Global variable related to block decomposition

The global variable M_.block_structure contains informations about the block structure for static and dynamic models

## static_blocks

- mfs : the variables belonging to the minimum feedback set. The block is solved with respect to those variables. The remaining variables of the blocks are purely recursive ones.

## dynamic block

simulation_type : indicates the way to solve the (deterministic) model. (see ByteCode)

- maximum_lag : maximum lag for all variables in the block
- maximum_lead : maximum lead for all variables in the block
- maximum_endo_lag : maximum lag for endogenous variables in the block
- maximum_endo_lead : maximum lead for endogenous variables in the block
- maximum_exo_lag : maximum lag for exogenous variables in the block
- maximum_exo_lead : maximum lead for exogenous variables in the block
- maximum_exo_det_lag : maximum lag for exogenous variables in the block
- maximum_exo_det_lead : maximum lead for exogenous variables in the block
- endo_nbr : number of endogenous variables in the block
- mfs : number of feedback variables in the block
- equation : list of equations of the block
- variable : list of variables of the block
- exo_nbr : number of exogenous variables in the block
- exogenous : list of exogenous variable of the block
- exo_det_nbr : number of deterministic exogenous variables in the block
- exogenous_det : list of deterministic exogenous variables of the block
- other_endo_nbr : number of endogenous variables related to previous blocks and entering in the current block
- other_endo : list of endogenous variables related to previous and entering in the current block
- lead_lag_incidence : the matrix containing the column index of the Jacobian matrix of the block for each endogenous variable (columns of lead_lag_matrix) and for each lead and lag (rows of lead_lag_matrix)
- n_static : number of static endogenous variables in the current block (see dr1.tex in doc directory)
- n_forward : number of purely forward endogenous variables in the current block (see dr1.tex in doc directory)
- n_backward : number of purely backward endogenous variables in the current block (see dr1.tex in doc directory)
- n_mixed : number of endogenous variables that appear both with lag and lead in the current block (see dr1.tex in doc directory)

## variable_reordered

- The list of reordered endogenous variables

## equation_reordered

- The list of reordered equation number

## incidence

- Contains for each lead and lag the incidence matrix
- lead_lag : the number of lead (for positive value) or the number of lag (for negative value)
- Sparse_IM : the sparse representation of the incidence matrix : each row contain a non null value in the incidence matrix. The first (second) element indicates the equation (endogenous variable).