Reputation: 3
Could you please help me to find a way to linearize this equation?
Cost = sum(CV[i]*Q[i] for i in range(10)) / sum(Q[i] for i in range(10))
The above-mentioned equation is a constraint of an MILP model in which, the CV is a parameter (a constant value) and Q is an integer variable. The value of Cost is used in an Objective Function so that it multiplies by another integer variable. But I know how to linearize the product of two integer variables. I just want to know how to linearize the division above. I'm using Python and the Docplex package for optimization.
Upvotes: 0
Views: 134