April 2019
Intermediate to advanced
426 pages
11h 13m
English
Another method for formulating the minimization objective is to place all unknown variables in a linear fashion such that they are additive:

Comparing with the previous objective equation, we would obtain the same fixed cost values. However, the unknown variable, quantityi, remains in the first term of the equation. Hence, the quantityi variable is required to be solved as a function of isOrderi, such that the constraints are stated as follows:

Let’s apply these formulas in Python:
In [ ]: """ This ...