Recursive computing is one of the strong properties of QM. However, I found that the Min() function incorrectly makes calculations, if its arguments are recursive expressions. If this is a bug in the program code, it would be nice to have the development team took care of it. If this is not an error code, then what has been done wrong in the attached model. Your valuable explanations are very welcome.
I would say this is a bug. I’ve also tested this using the Max Function and the same results. I’ve tried multiplying by 1 the soft recursion (M1::B[~PREV]*1) no success. Even checking the help file it states:
You can force a calculation of an item, when no previous or next value exists, by using a soft recurrence formula. You create a soft recurrence by adding a tilde (~) in front of the keyword, e.g. [~PREV]. [b:1c0ybdzy]Quantrix will assume a value of zero when calculating the first or next item[/b:1c0ybdzy].