| # Minimax Inequality Weak Duality > Dual problem | Geometry | Minimax Inequality ## Primal problem as a minimax problem The Lagrange function allows to rewrite the problem in an unconstrained fashion, as follows.
| Right angle property: For any fixed , That is, for any pair of vectors , the angle between and is always less or equal than . This comes from the fact that the non-negative orthant is a convex cone with a right angle at the origin.
Thus, for fixed , applying the above to : The above function (of ) acts like a barrier for the feasible set of the primal problem: it is whenever is feasible, and outside the feasible set. Thus: ## Minimax inequality The minimax inequality states that for any function of two vector variables , and two subsets , , we have The proof is very simple. Applying this result to the expression of as a minimax, we obtain where is the dual function. ## Interpretation as a game We can interpret the minimax inequality in the context of a game, with primal and dual variables acting as adversaries. Consider a game with two players and : decides over the primal variables, and seeks to minimize the ‘‘cost’’ ; player plays the dual variables , subject to the constraint , and seeks to maximize the ‘‘payoff’’ . We assume that one of the players goes first, the game is played only once, and both players have full information on the other’s choice, once their decision is made. If plays first, it is at a disadvantage: it does not know the decision of in advance, and must prepare for the worst outcome. In constrast, can adapt to whatever the decision of is, and make a better choice than if it could not adapt. Therefore, we expect the cost (to ) to be higher in the case when plays first than if it plays second. Let us assume plays first, and chooses the decision vector . Since that decision is known to once it is made, the optimal strategy for is to set to be optimal for the optimization problem (here is fixed) The best choice for , knowing that will adapt this way to any of its decisions , is to set to be such that the above payoff (to ) is the smallest. That is, the best decision for (when it plays first) is to set to solve the problem The above represent the minimum cost that is going to pay in the worst-case, that is, in the case when plays optimally as a second player. Now assume that plays second. This time, it is who adapts to the decision of . For any given such decision , the best decision (for ) is to solve This is nothing else than the dual function. That is, the dual function tells us the optimal strategy (for ) as a function of the dual variable . The best choice for , knowing that will adapt this way to any of its decisions , is to set to be such that the above cost (to ) is the largest. That is, the best decision for (when it plays first) is to set to solve the problem The minimax inequality simply states that indeed is at a disadvantage if it plays first.