'is it possible to multiply two Gurobi linear expressions?
Solution 1:[1]
No, but you can do this by adding intermediate variables for the sums, e.g. sx = sum(x[i]) and sy = sum(y[i]); then you can replace the product of the linear expressions by the product sx * sy.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Greg Glockner |

