next up previous contents
Next: Curve Fitting Up: Numerical Analysis for Chemical Previous: Linear Algebraic and Equations

Subsections


Optimization

Figure 4.1: The illustation of the difference between roots and optima.
\includegraphics[scale=.5]{pic/optim}

An optimization or mathematical programming problem

Find $ \mathbf{x}$, which minimizes or maximizes $ f(\mathbf{x})$

subject to

  $\displaystyle d_i(\mathbf{x}) \le a_i \quad i=1,2,\ldots,m$ (4.1)
  $\displaystyle e_i(\mathbf{x}) = b_i \quad i=1,2,\ldots,p$ (4.2)

where $ \mathbf{x}$ is an n-dimensional design vector, $ f(\mathbf{x})$ is the objective function, $ d_i(\mathbf{x})$ are inequality constraints, $ e_i(\mathbf{x})$ are equality constraints.

Classification of optimization problem

One-dimensional Unconstrained Optimization

Golden-Section Search

Figure 4.2: The illustation of the Golden-section search method.
\includegraphics[scale=.5]{pic/golden}

Golden-section search method is similar to the bisection method in solving for the root of a single nonlinear equation. Golden-section search method can be achived by specifying that the following two conditions hold:

$\displaystyle \ell_0$ $\displaystyle = \ell_1 + \ell_2$ (4.3)
$\displaystyle \frac{\ell_1}{\ell_0}$ $\displaystyle = \frac{\ell_2}{\ell_1}$ (4.4)

Defining $ R=\ell_2 / \ell_1$

$\displaystyle R=0.61803....$ (4.5)

This value is called the golden ratio.

Disadvantages

Quadratic Interpolation

Quadratic interpolation takes advantages of the fact that a second-order polynomial often provides a good approximation to the shape of $ f(x)$ near an optimum.

An estimate of the optimal $ x$

$\displaystyle x_3=\frac{f(x_0)(x^2_1 -x^2_2)+f(x_1)(x^2_2 -x^2_0)+f(x_2)(x^2_0 -x^2_1)}{2f(x_0)(x_1 -x_2)+2f(x_1)(x_2 -x_0)+2f(x_2)(x_0 -x_1)}$ (4.6)

Newton's Method

At an optimum, the optimal value $ x^*$ satisfy

$\displaystyle f'(x^*)=0$ (4.7)

With a second-order Taylor series of $ f(x)$, we can find the following equations for an estimate of the optimal

$\displaystyle x_{i+1} = x_i - \frac{f'(x_i)}{f''(x_i)}$ (4.8)

Multidimensional Unconstrained Optimization

Classification of unconstrained optimization problems

Direct Methods

Figure 4.3: Conjugate directions.
\includegraphics[scale=.5]{pic/conjugate}

These methods vary from simple brute force approaches to more elegant techniques that attempt to exploit the nature of the function.

Gradient Methods

Gradient methods use derivative information to generate efficient algorithms to locate optima.

The gradient is defined as

$\displaystyle \nabla f = \frac{\partial f}{\partial x}\mathbf{i} + \frac{\partial f}{\partial y}\mathbf{j}$ (4.9)

Derivative information

The quantity $ \vert H\vert$ is equal to the determinant of a matrix made up of the second derivatives and, for example, the Hessian of a two-dimensional system is

$\displaystyle H=
\begin{bmatrix}
\displaystyle \frac{\partial^2 f}{\partial x^2...
...l y \partial x} & \displaystyle \frac{\partial^2 f}{\partial y^2}
\end{bmatrix}$

The steepest-descent algorithm is summaried as

  1. Calculate the partial derivatives

    $\displaystyle \frac{\partial f(\mathbf{x})}{\partial \mathbf{x}_i}$ (4.10)

  2. Calculate the search vector

    $\displaystyle \mathbf{s} = - \nabla f(\mathbf{x}^k)$ (4.11)

  3. Use the relation

    $\displaystyle \mathbf{x}^{k+1} = \mathbf{x}^k + \lambda^k \mathbf{s}^k$ (4.12)

    to obtain the value of $ \mathbf{x}^{k+1}$. To get $ \lambda^k$ use the following equations

    $\displaystyle f(\mathbf{x}^{k+1}) = f(\mathbf{x}^k + \lambda \mathbf{x}^k) = f(...
...{1}{2} (\lambda \mathbf{s}^k)^T \mathbf{H}(\mathbf{x}^k) (\lambda \mathbf{s}^k)$ (4.13)

    To get the minimum, differentiate with respect to $ \lambda$ and equate the derivative to zero

    $\displaystyle \frac{df(\mathbf{x}^k + \lambda \mathbf{x}^k)}{d\lambda}= \nabla^...
...\mathbf{s}^k + (\mathbf{s}^k)^T \mathbf{H}(\mathbf{x}^k) (\lambda \mathbf{s}^k)$ (4.14)

    with the result

    $\displaystyle \lambda^\mathrm{opt} = \frac{\nabla^T f(\mathbf{x}^k) \mathbf{s}^k}{(\mathbf{s}^k)^T \mathbf{H}(\mathbf{x}^k)\mathbf{s}^k}$ (4.15)

Contrained Optimization

Linear Programming

Four general outcome from linear programming

Optimization with Packages

Engineering Applications: Optimization

See the textbook


next up previous contents
Next: Curve Fitting Up: Numerical Analysis for Chemical Previous: Linear Algebraic and Equations
Taechul Lee
2001-11-29