You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I refer to both the hard shift and soft nurse constraint.
In doing my algebra, I wasn't able to reproduce the exact equation found in the documentations for both constraints.
I think I may have gotten rusty at my high school math but please look at the following and enlighten me:
Mine: Expanding the following equation and removing the constant:
When we take the summation of binary variables and square them, we get the sum of the different variables multiplied with each other, plus the sum of the square of individual variables. ie. (a + b)**2 == (a**2 + b**2 + 2ab).
The sum of the square of individual variables is equal to the sum of the original binary variables, since 0 ** 2 = 0 and 1 ** 2 = 1.
I refer to both the hard shift and soft nurse constraint.
In doing my algebra, I wasn't able to reproduce the exact equation found in the documentations for both constraints.
I think I may have gotten rusty at my high school math but please look at the following and enlighten me:
Mine: Expanding the following equation and removing the constant:
gives me the following:
Documentation: Notice the (Different) parts - above vs the bottom one:
There is an additional effort **2 among other things. Can someone please kindly explain the differences?
Thanks
The text was updated successfully, but these errors were encountered: