I'd put the image here, but it's way too wide. Whoever typed it up didn't wrap the text in a helpful manner. So, for other viewers, here's the text at the link:
I have two matrices of 1*n of variables:
. . . . .si,xi
I would like to create a matrix of new variables (dimension n*k, where k is an arbitrary natural number). Using constraints, I would like the variables to have the following function:
. . . . .\(\displaystyle z_{ij}\, =\, \begin{cases}1&\mbox{ if }\, j\, \geq\, s_i\, \mbox{ and }\, j\, \leq\, x_i \\ 0&\mbox{ otherwise} \end{cases}\)
For example:
. . . . .si=4
. . . . .xi=8
. . . . .zi5=1
My question is, how would I formulate the constraints of
. . . . .zij
?
If I have typoed something in the above, please reply with corrections. Thank you!
