- There is the original paper at https://www.sciencedirect.com/science/article/abs/pii/S0304393214001238
- In the deterministic model, Dynare will solve the model nonlinearly. Here the max operator is fine.
- An alternative to the hard constraint in a stochastic model could be a penalty function. See