minzz≥xi |
What about minimizing the kth largest value? Here is one possible MIP formulation:
minzz≥xi−δiM∑iδi=k−1δi∈{0,1} |
I.e., we have k−1 exceptions on the constraint z≥xi. The objective will make sure the exceptions are the largest xi. We should think long and hard about making the big-M’s as small as possible. If you have no clue about proper bounds on xi one could use indicator constraints.
Interestingly, minimizing the sum of the k largest can be modeled as a pure LP (1) :
min∑ivi+k⋅qvi≥xi−qvi≥0q free |
References
- Comment by Michael Grant in http://orinanobworld.blogspot.se/2015/08/optimizingpartoftheobjectivefunction-ii.html.
What is the 'M' in your formulation for the k largest? (Sorry if this is obvious!)
ReplyDeleteBig-M constraints are an important concept in integer programming. Basically M is a large enough constant to make a constraint non-binding. Any book on LP/MIP will discuss this in length.
Delete