Originally posted by: SystemAdmin
[jantzen said:]
I'm generating models that use many equations repeating the same sum of variables (A + B + C + D), with of course other variables. Would it help in any way if I declared a new variable X, created a constraint where this new variable is equal to the sum of my variables ("X = A + B + C + D"), and then use this new variable X whenever I used to use the sum ?
I'm tracking every possible way to improve performance of my models, already knowing that I have potential numerical instabilities I cannot get rid of by design. I was wondering if a trick such as above was already done in some way during preprocessing, or if it had a chance of making my system converge faster ... thanks.
Before:
[color=blue][b]A + B + C + D[/b][/color] + E <= xxxx<br />[color=blue][b]A + B + C + D[/b][/color] + F >= yyyy
zzzz <= [color=blue][b]A + B + C + D[/b][/color] <= tttt<br />
After:
[color=red][b]X[/b][/color] = [color=blue][b]A + B + C + D[/b][/color]
[color=red][b]X[/b][/color] + E <= xxxx<br />[color=red][b]X[/b][/color] + F >= yyyy
zzzz <= [color=red][b]X[/b][/color] <= tttt<br />
(I'm using CPLEX 11.2 and MIP)
#CPLEXOptimizers#DecisionOptimization