Appendix 1 ~ Dual Problem
Derivation of the dual problem
Consider the primal problem as defined below.

The construction of the dual problem is generated by first forming the Lagragian function as defined below.

A Lagrangian function is used in constrained optimization to find the maximum or minimum of a function subject to one or more constraints. Solving the system of equations where the partial derivatives of the Lagrangian with respect to the objective function and slacked constraints are set to zero identifies potential optimal points for the constrained optimization problem. The partial derivitive of the Lagrangian with respect to T and x are:


(Note this is for all miners from 1..n.) At the optimum is must hold true that the inequality constraints under stationary conditions are also equal to 0 and so we can list them all here as follows: Budget Cap:

Payout Rate Cap:

Diversity:

Ramp Constraint (upper/lower):

Box Constraints:

Eligibility:

With all of these constraints defined all original primal constraints must hold as well as all dual variables respecting their signs:

With these complementary slackness relations, primal feasibility, dual feasibility, and the stationarity conditions, we obtain the full set of Karush–Kuhn–Tucker (KKT) conditions. Together they are necessary and sufficient for optimality in this convex program. In other words, the primal solution (x*, T*) and the corresponding dual variables:

must jointly satisfy this system. Once these conditions hold, the allocation vector and dual shadow prices define both the optimal routing of qualified volume and the “scoreboard” of binding constraints that govern the incentive mechanism.
Last updated