Nonlinear Program
Overview
This section deals with solving nonlinear programs by converting team into linear programs. Given a nonlinear function \(f(\mathbf{x})\), we are interested in solving:
Convex Piecewise Linear Function
Any convex piecewise linear function (PWL), \(\tilde{f}(\mathbf{x})\), can be written as a maximum of a finite number of linear functions:
Similarly, any concave PWL can be writtes as a minimum of a finite number of linear functions.
Convex Piecewise Linear Approximation
Any convex function, \(f(\mathbf{x})\), can be approximated by a convex PWL function, \(\tilde{f}(\mathbf{x})\) to an arbitrary accuracy as shown in the Figure 1.
The optimization problem then becomes:
Reformulation
We can further reformulate the problem by introducing a new variable, \(z\), and putting the objective into a constraint:
or equivalently:
which is a Linear Program:
Example 1: Linear Classification and Robust Regression
Consider a set of training data \((\mathbf{x}_i, y_i)\) for \(i = 1, \ldots, N\) where \(\mathbf{x}_i \in \mathbb{R}^n\) is a feature vector and \(y_i\) is a binary label. We are interested in building a linear classifier:
such that, for a given feature vector \(\mathbf{x}\), if \(f(\mathbf{x}) \geq 0.5\), then \(\mathbf{x}\) is classified as \(y = 1\), otherwise \(y = 0\).
The classifier should be optimal in minimizing total prediction error over the training data. The prediction error is a measure of distance between classifier's output and the true label. If we use \(l_1\)-metric, we will have the following robust regression model:
The equivalent LP reformulation of the problem is:
Example 2: Concrete Facility Location
A concrete facility is planning to produce concrete poles. It requires two new facilities in its factory, a new concrete casting area (a) to make concrete poles and storage area (b) for storing the finished product. The current layout of the factory is shiown in Figure 2.
The costs of moving parts per unit distance is shown below:
Material Handling Cost | Pole Casting a | Pole Storage b |
---|---|---|
Pole Casting | - | - |
Pole Storage | 4.00 | - |
Concrete Batch | 1.10 | - |
Steel Mfch | 0.70 | 0.65 |
Shipping | - | 0.40 |
We are interesting in finding locations for \(a: (x_1, y_1)\) and \(b: (x_2, y_2)\) such that the total cost of transporting between facilities is minimized. The problem can be formulated as:
Using Manhattan distance:
Using auxiliary variables, the equivalent LP formulation of the problem is:
Example 3: Radiation Therapy Planning Problem
For a given tumor and given critical areas obtained from imaging, and a given set of possible beamlet origins and angles (we assume that the angles are fixed), we are interested in determining the weight of each beamlet such that:
- Dosage over the tumor area will be at least a target level \(\gamma_L\)
- Dosage over the critical area (e.g., spine etc.) will be at most a target level \(\gamma_U\)