In this case, the result will set the upper value and different level value of z(i,n). However, I want to use the upper value instead of level value since I need to use the minimum value of z(i,n). How to solve this problem?