↑
logo

A general-purpose solver for variational inequalities and game equilibria

Posted by shb20 |3 hours ago |1 comments

shb20 3 hours ago

I've been developing a Python implementation of a path-following algorithm for variational inequalities (VIs). GitHub: https://github.com/shb20tsinghua/FiberBundle_VI

A variational inequality is a unified framework for optimization, game theory, and many engineering problems. It generally characterizes the problem of finding equilibrium points of vector fields: an equilibrium point can occur where the vector field vanishes or, under constraints, where the field points outward at the boundary so that no further feasible movement in that direction is possible. This framework also captures fixed points of continuous maps on compact convex sets and, in particular, Nash equilibria in game theory.

The solver implements a fixed-point bundle path-following method. It currently supports simplex and product-of-simplices domains, including general-sum m-player, n-action game equilibrium problems. It requires no monotonicity or other structural assumptions and guarantees global linear convergence under some smoothness conditions.

I've prepared a Colab notebook for trying the solver online: https://colab.research.google.com/github/shb20tsinghua/Fiber...

The solver has been tested on 36,000 nonlinear VIs and games, with dimensions up to 1024 for simplex domains and ranging from 2-player 128-action to 128-player 2-action for product-of-simplex domains. It reached 1e-5 gap precision on all instances.

I also benchmarked it against SciPy's trust-constr (a widely used general-purpose minimizer) on classical benchmark minimization problems. Across all 1,560 runs, the solver achieved a 100% success rate at tolerances 1e-5 and 1e-8, while trust-constr achieved 95.6% and 65.7%. The solver was also 3.9x and 5.9x faster than trust-constr.

I'd especially appreciate any feedback or suggestions.