Relative Content

Tag Archive for pythonlinear-programmingpulp

lpSum value dependent multiplier in Pulp

I am struggling to select the correct cost_coefficient that is dependent on lpSum of the decision variables. I need to compare the lpSum(binary_option[option] for option in options) against the elements in threshold. The first element which is greater than lpSum(binary_option[option] for option in options), its corresponding cost coefficient (with the same index) should be used as the multiplier for the objective function. The following is what i have so far.