Docsity

Algorithms for Nonlinear Constraints: Penalty, Barrier, and Augmented Lagrangian, Study notes of Agricultural engineering

Toggle sidebar
bg1
Lecture XIII
Algorithms for Nonlinear Constraints
I. General Objective
A. The general objective is to maximize or minimize a nonlinear objective function
subject to nonlinear constraints. Gill, Murray, and Wright lay out the basic
problems:
NEP fx
st c x i t
x
i
min ( )
( ) ,..= =0 1
and
NIP fx
st c x i t
x
i
min ( )
( ) ,...≥ =0 1
B. These optimization problems are much more difficult than the equality or inequality
constraints posed in the preceding sections due to the difficulties involved in
maintaining feasiblity.
1. By the formulation of the null-space in the linear equality scenario, it was
always possible to guarantee that xk+1 was feasible given that xk was
feasible.
2. Similarly, expansion to linear inequality constraints only added caveats to
the step length algorithm and checks on whether a constraint could be
deleted.
3. However, the solution of nonlinear constraints may be difficult, if not
impossible, without the incorporation of a nonlinear objective function.
C. I want to discuss three different methodologies for optimization under nonlinear
constraints. The first two are the use of penalty and barrier functions. The third
procedure is the projected augmented Lagrangian method.
II. Penalty Functions
A. The penalty and barrier function procedures are very similar. The primary concept
of both procedures is to append an additional term onto the objective function
which imposes a cost for violating the constraint.
B. Taking the Penalty function first, assume that we want to optimize
min
xx
st x
2
1 0− =
Granted that the constraint is linear, and could be solved using a projected quasi-
Newton algorithm, a quadratic penalty function for this problem could be specified
as
Px x x
Q(,) ( )ρ
ρ
= + −
2 2
21
where the ρ term yields a penalty for violating the constraint. Solving this problem
while increasing the penalty parameter yields an optimal solution with the constraint
imposed.
pf3

Partial preview of the text

Download Algorithms for Nonlinear Constraints: Penalty, Barrier, and Augmented Lagrangian and more Study notes Agricultural engineering in PDF only on Docsity!

Lecture XIII

Algorithms for Nonlinear Constraints

I. General Objective A. The general objective is to maximize or minimize a nonlinear objective function subject to nonlinear constraints. Gill, Murray, and Wright lay out the basic problems: NEP f x st c x i t

x i

min ( ) ( ) = 0 = 1 ,.. and NIP f x st c x i t

x i

min ( ) ( ) ≥ 0 = 1 ,... B. These optimization problems are much more difficult than the equality or inequality constraints posed in the preceding sections due to the difficulties involved in maintaining feasiblity.

  1. By the formulation of the null-space in the linear equality scenario, it was always possible to guarantee that xk +1 was feasible given that xk was feasible.
  2. Similarly, expansion to linear inequality constraints only added caveats to the step length algorithm and checks on whether a constraint could be deleted.
  3. However, the solution of nonlinear constraints may be difficult, if not impossible, without the incorporation of a nonlinear objective function. C. I want to discuss three different methodologies for optimization under nonlinear constraints. The first two are the use of penalty and barrier functions. The third procedure is the projected augmented Lagrangian method. II. Penalty Functions A. The penalty and barrier function procedures are very similar. The primary concept of both procedures is to append an additional term onto the objective function which imposes a cost for violating the constraint. B. Taking the Penalty function first, assume that we want to optimize min x x st x

2

− 1 = 0 Granted that the constraint is linear, and could be solved using a projected quasi- Newton algorithm, a quadratic penalty function for this problem could be specified as

PQ ( , x ρ ) x ( x )

ρ = 2 + −^2 2

where the ρ term yields a penalty for violating the constraint. Solving this problem while increasing the penalty parameter yields an optimal solution with the constraint imposed.

AEB 6533 – Static and Dynamic Optimization Lecture 13 Professor Charles B. Moss

2

C. Algorithm DP (Model algorithm with a differentiable penalty function) DP1. [Check termination conditions.] If xk satisfies the optimality conditions, terminate with the current solution. DP2. [Minimize the penalty function.] Using xk as the starting point, execute an algorithm to solve the unconstrained subproblem min x PQ ( , x p (^) k ) subject to safeguard conditions to protect against unboundedness. Let xk +1 be the estimate of this subproblem. DP3. [Increase the penalty parameter.] Set ρ k +1 to a larger value than ρ k. and go back to step DP1. II. Barrier Function A. The barrier function works well when the constraint can be evaluated either above or below its constrained value. Specifically, if the nonlinear constraint is an equality, then a sufficient penalty parameter can be derived to force that the constraint be close to the right hand side. However, in certain cases, you may want to guarantee feasibility as a minimum condition. For this type of problem the barrier method may be preferred. B. Focusing on the logarithmic barrier function, we create a subproblem similar to that generated in the penalty parameter framework. Specifically

B x r f x r c (^) i x i

m ( , ) = ( ) − ln( ( )) =

1 where r is the barrier parameter and the ln(.) term in the maximization problem guarantees that the ci(x) will be greater than zero. III. Projected Augmented Lagrangian A. Minos 5.1 uses the projected augmented Lagrangian algorithm to optimize problems involving nonlinear constraints. B. This algorithm as instituted in Minos solves a sequence of subproblems. Each subproblem, or major iteration, solves a linearly constrained minimization (maximization) problem. The constraints for this linear subproblem are the linear constraints plus the linearlized nonlinear constraints. Then like the straightforward penalty parameter method, the penalty can be increased to approach the nonlinear constraints with an arbitrary level of precision.

  1. Mathematically, the general problem can be written

min ( ) ' ' ' ( ( ) ( ) ( ( ) ( ))'( ( ) ( ))

( )

x k^ k^ k

f x c x d y G x G x G x G x G x G x

st G x A y b A x A y b

l

x y

u

λ ρ

1 1 2 3 2

  1. In this problem, the major iteration involves the linearlization of the constraints around the point xk.