The primal-dual method is a general approach used in optimization, particularly for solving Nonlinear Programming problems (NLPs) that involve non-linear constraints. It uses both the primal problem (the original optimization problem) and its dual problem (derived from the primal by a process called duality) to find the solution iteratively. The primal-dual method is especially useful when dealing with convex optimization problems.
In the context of NLPs, the primal problem can be formulated as follows:
Primal Problem:
Minimize f(x)
Subject to
g_i(x) ≤ 0 for i = 1, ..., m
h_j(x) = 0 for j = 1, ..., p
x ∈ R^n
Here f(x) is the objective function that we want to minimize, g_i(x) are inequality constraints, h_j(x) are equality constraints, and x is the vector of decision variables.
The Lagrangian L(x, λ, μ) for this problem is given by:
L(x, λ, μ) = f(x) + ∑ λ_i g_i(x) + ∑ μ_j h_j(x)
where λ_i ≥ 0 are the Lagrange multipliers associated with the inequality constraints, and μ_j are the Lagrange multipliers associated with the equality constraints.
The dual problem can be derived from the Lagrangian, and its goal is to maximize the dual objective function with respect to the Lagrange multipliers while satisfying certain conditions.
Dual Problem:
Maximize θ(λ, μ)
Subject to
λ_i ≥ 0 for i = 1, ..., m
where the dual function θ(λ, μ) is defined as:
θ(λ, μ) = inf_x L(x, λ, μ)
The primal-dual method solves both the primal and dual problems simultaneously. It starts with an initial guess for the primal and dual variables and then updates them iteratively to satisfy the optimality conditions known as the Karush-Kuhn-Tucker (KKT) conditions for optimality. The KKT conditions for the given NLP are:
- Primal Feasibility: g_i(x) ≤ 0 for all i and h_j(x) = 0 for all j.
- Dual Feasibility: λ_i ≥ 0 for all i.
- Complementary Slackness: λ_i g_i(x) = 0 for all i.
- Stationarity: ∇f(x) + ∑ λ_i ∇g_i(x) + ∑ μ_j ∇h_j(x) = 0.
The primal-dual algorithm typically uses some variant of Newton's method to update both the primal variables (x) and the dual variables (λ, μ) simultaneously. The updates are based on solving a system of linear equations derived from the KKT conditions.
The primal-dual update step involves solving the following linear system:
[∇^2_x L(x, λ, μ) ∇g(x) ∇h(x)]
[∇g(x)ᵀ -diag(λ) 0 ]
[∇h(x)ᵀ 0 0 ] [Δx]
[0 diag(g(x)) 0 ] [Δλ] = -[∇_x L(x, λ, μ)]
[0 0 I ] [Δμ] [λ_i g_i(x)]
[h_j(x)]
where Δx, Δλ, and Δμ are the search directions for the primal and dual variables. diag(λ) and diag(g(x)) represent diagonal matrices with the components of λ and g(x), respectively, and I is the identity matrix.
At each iteration, the primal and dual variables are updated as follows:
x^(k+1) = x^(k) + α Δx
λ^(k+1) = λ^(k) + α Δλ
μ^(k+1) = μ^(k) + α Δμ
where α is a step size chosen to ensure that the updated solution remains feasible with respect to the primal and dual feasibility conditions.
The primal-dual method continues to iterate until convergence criteria are met, such as when the change in the objective function value is below a specified tolerance, or the KKT residuals (the left-hand side of the KKT conditions minus the right-hand side) are sufficiently small.
It's important to note that the above description is a simplification of a complex topic. In practice, implementing a primal-dual method effectively often requires careful treatment of numerical issues, selection of appropriate step sizes, and handling of various edge cases.