3 Quality guarantees
An ideal outcome in optimization practice is to produce a pair of primal and dual solutions with a small duality gap. Optimization proxies also have the ability to find dual feasible solutions for many convex optimization problems arising in engineering, thus providing a quality guarantee to any primal solution delivered by another optimization proxy. In other words, it is possible to design two optimization proxies, that is, a pair of primal and dual differentiable programs, that deliver primal and dual feasible solutions respectively. To illustrate the dual optimization proxies, consider the following linear program and its dual:
The formulation of the primal optimization reflects the fact that, in almost all engineering problems, the decision variables have lower and upper bounds. This is an important property because it makes it possible to systematically restore feasibility in the dual space. Indeed, the dual optimization proxy can predict y and then use and , that is, the dual variables associated with the bound constraints, to obtain a dual feasible solution. In other words, the dual optimization proxy predicts a subset of the variables and its completion layer obtains a dual feasible solution by carefully assigning the duals attached to the primal bound constraints. In fact, the optimal values for λ and γ admit a closed-form solution [10]:
where and denote the positive and negative parts of . The methodology underlying dual optimization proxies is illustrated in Figure 9.4.

Figure 9.4 The structure of dual optimization proxies.
Dual optimization proxies have first been proposed for the Second-Order Cone Programming (SOCP) relaxation of the AC power flow equations in [21]. The completion layer is particularly interesting in that paper: it uses properties of the dual optimal solutions to determine how to complete the set of dual variables not predicted by the neural network. Again, the dual optimization proxy is a differentiable program that can be trained end-to-end to produce feasible solutions at training and inference times. Experimental results have shown that the resulting proxies can find near-optimal dual feasible solutions. See also [24] for a generalization of this result to dual conic proxies.
More generally, a methodology to find quality guarantees for an optimization problem Φ can be summarized as follows:
- 1.
-
Find a convex approximation Ψ to problem Φ.
- 2.
-
Obtain the dual of Ψ.
- 3.
-
Derive a dual optimization proxy for .
Now, given an instance x, the pair provides a pair of primal and dual feasible solutions.