Update Auxiliary variables authored by Normann Rion's avatar Normann Rion
......@@ -110,6 +110,16 @@ This kind of aux var has `M_.aux_vars(i).type = 12` accounts for applying the `p
This kind of aux var has `M_.aux_vars(i).type = 13` accounts for applying the `pac_target_nonstationary`-operator to a `pac_model`.
Here is a proposed addition to the Dynare auxiliary variables wiki, describing **Type 15: Heterogeneous Multipliers** in the same style and level of detail as the other types:
### Type 14: aggregated heterogeneous variables `aggregationOp` (since Dynare 6)
This kind of auxiliary variable has `M_.aux_vars(i).type = 14` and is created when applying an aggregation operator (such as `SUM`) to a variable or expression in a heterogeneous-agent model.
These operators reduce individual-level variables into aggregates that enter the representative-agent block. For example, if the `SUM(c)` syntagma defines total consumption aggregated across the distribution of agents in the `.mod` file, the preprocessor creates the auxiliary variable `SUM_c`.
The auxiliary variable captures the result of this operation and ensures that:
* the aggregation is handled symbolically,
* and the associated value is available for inclusion in residual and Jacobian evaluation.
## Type 15: heterogeneous model multipliers (since Dynare 7)
Considerins heterogeneity dimension `j`, This kind of auxiliary variable has `M_.heterogeneity(j).aux_vars(i).type = 15` and is introduced to represent Lagrange multipliers associated with complementarity constraints in heterogeneous-agent models. These arise when an agent's decision is constrained by inequality bounds, such as borrowing constraints, portfolio limits, or non-negativity requirements.
......
......