I have created an Autoregressive model with exogenous input (ARX model) for my thermal model which I want to use to calculate Room temperature for an optimized Air conditioner power.

The ARX requires the previous 6 values of input (and the output) variables.

However, I have not found a suitable way to successfully write an expression in GAMS that includes the current values and the previous values of the same variables.

I will appreciate it if anyone can point me to some websites, materials, etc that address such an issue.

Best regards.

Similar questions and discussions