I'm new to programming and writing models. Most of the models I studied have straightforward objective functions and easy constraints that simple inequalities. I'm trying to write a constraint that would select the max of a set. Q is the queue selection and Ri is the rate of user i, both of which are dependant on time. Q and R will change every time period. a and b are constants. I know I should introduce a large number and a binary variable. I'm not sure where to start.
Q=[max(Ri)][a][b]
I read this thread (linear programming set a variable the max between two another variables) but I couldn't apply it to my example.