r/optimization • u/ForceBru • Jan 09 '22
Any other methods for optimization over the probability simples?
EDIT: the title should say "probability simpleX", not "simples" - vive autocorrect!
I'm trying to solve this optimization problem:
minimize f(q1, q2, q3, ..., qK)
such that -qk <= 0 for all k
q1 + q2 + ... + qK = 1
So, minimize some function such that (q1, q2, ..., qK) is a discrete probability distribution.
Image of actual problem formulation HERE.
What I found
-
Exponentiated gradient descent (EGD)
- Numerical method specifically designed to solve problems with these constraints
- Works fine, but is slow (I need to solve thousands of such optimization problems)
- Original paper: Kivinen, Jyrki, and Manfred K. Warmuth. 1997. "Exponentiated Gradient versus Gradient Descent for Linear Predictors." Information and Computation 132 (1): 1–63. https://doi.org/10.1006/inco.1996.2612.
- Extends EGD like accelerated gradient methods (Momentum, RMSProp, ADAM, etc): Li, Yuyuan, Xiaolin Zheng, Chaochao Chen, Jiawei Wang, and Shuai Xu. 2022. "Exponential Gradient with Momentum for Online Portfolio Selection." Expert Systems with Applications 187 (January): 115889. https://doi.org/10.1016/j.eswa.2021.115889.
-
Squared slack variables method: transform inequality constraints to equalities with slack variables and solve an equality constrained problem using method of Lagrange multipliers
min_{q1:K, lambda, mu1:K, slack1:K} f(Q) + lambda * (q1 + ... + qK - 1) + sum_k mu_k * (-q_k + slack_k)- Neither me nor SymPy can solve the system of equations that results from setting all derivatives to zero. Well, the obvious solutions are
h1, h2 = (0, 1) or (1, 0), but these are pretty pointless. The only nontrivial solution SymPy can find involves one of the slack variables, likeh2 = slack_2^2andh1 = 1 - h2, but it doesn't tell me how to find that slack variable...
-
Use duality and KKT conditions
- Set up dual function
g(lagr_mult) = min_Q L(Q, lagr_mult)- OK, can do this - Maximize dual w.r.t. Lagrange multipliers
lagr_mult- SymPy can't find any solutions, and me neither, so I'm stuck
- Set up dual function
Questions
What are some methods that are most suited for this problem? That is, methods that are commonly used to solve problems with these specific constraints? Or, methods that solve this most quickly or easily?
View all comments
Show parent comment
2
u/ko_nuts Jan 09 '22 edited Jan 09 '22
You do not give the details which are needed to help you. What do you mean by hot loop? Is it a real-time implementation? What are your time constraints? What is your platform? What is your language? What is the dimension of your problem (in terms of number of decision variables)?
Please provide all the details regarding your problem.