I have the next constraint in logic (simplified):
$$\forall r \in R, t \in T: x_{rt} = 1 \implies t_a < r_p < t_b$$
I need to linearize this. What I've come up with is: \begin{align} x_{rt}t_a &< r_p \\ x_{rt}r_p &< t_b \end{align} But this looks kind of hacky. Although I think it should work, is there a better way to convert my constraint?
I need to assign reservations to tables. $R$ is the list of reservations. $T$ is the list of tables. Obviously the amount of people in the reservation needs to be less than the maximum amount of seats on a table and more than the minimum amount of seats. $x_{rt}$ is the boolean that says that reservation $r$ is assigned to table $t$. $t_a$ is the minimum seats at the table, $t_b$ is the maximum and $r_p$ is the amount of people in the reservation. $t_a$, $t_b$ and $r_p$ can be assumed constant. $x_{rt}$ is a variable (and needs to be optimized).