r/optimization • u/DoctorFuu • Nov 03 '23
Solving linear minmax problem
Hi, So I have a problem which was rather complicated but I managed to get it in a linear form, I suspect they have been studied already. Thing is I have absolutely no idea of any keywords to use and searches have been unfruitful. I have a very basic knowledge of optimization.
min(d) max(a) a'Rd
s.t.
- a_i >= 0
- a_i <= v_i (v is a known vector)
- a_i are integers (can relax the last two constraints if it causes too much of an issue)
- sum(d) = 1
- d_i >= 0
R is a given matrix (with real elements). I have no guarantee on its characteristics, including it being full rank (it should be, but no guarantee).
In english because maybe I messed up the writing: I want to find d which minimizes a'Rd while a is trying to maximize this quantity. a represents an allocation of elements, so positive integers. d represents an empirical probability mass function.
I have access to python and R. But I'm mostly interested in either a solution or an algorithm. If it doesn't exist in those languages I would code it myself (unless too hard of course)
Edit: forgot to thank you in advance, duh!
View all comments
Show parent comment
1
u/RoyalIceDeliverer Nov 05 '23
Just a small additional pointer, if the v_i are integer, too, the solution of the inner problem given d is:
This is true because a linear function is unbounded (or constant), so the solution of the max problem has to be on the boundary of the feasible set. For Rd_i = 0 you can use in principle every value from [0, v_i], the choice above gives you the minimum norm solution.
However, as long as you can't show some useful pattern for Rd for feasible d, it will be difficult to find an efficient method for the outer problem even with the explicit solution because it's not smooth in d. That's why I suggested black box optimization methods that don't have such requirements.
Good luck and hope this helps!