Hello,

My model contains arrays of stochastic univariate normal RVs and I want to constrain them to be in a monotonic order, x_0<x_1<x_2, and so on. I don’t care whether they are increasing or decreasing (so it can be x_0>x_1>x_2), they just need to be monotonic. Any idea how to code this?

Thanks!