CH 11 Non Linear Programming
CH 11 Non Linear Programming
NONLINEAR PROGRAMMING
to accompany
Operations Research: Applications & Algorithms,
4th edition, by Wayne L. Winston
1
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
Chapter 12 - Learning
1. Objectives
Learn the differences between the
2.
3.
4.
2
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
What is a NLP?
NLPs are closer to general and
realistic (and possibly
unsolvable) models than the LPs.
Some LPs are the linearized
versions of NLPs out of necessity.
NLPs have non-proportional
and non-additive relationships.
3
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
4
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
5
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
6
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
7
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
8
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
Maximum Volume of a
LetBox
the height, width, and length
be a, b, and, c.
Volume = a b c (product is not
linear)
The model is:
Max Volume;
subject to something?
(constraints)
9
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
10
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
The Model :
Maximize Volume
S.t. :
2( ab + ac + bc) <= X ;
a<= Y;
(a, b, c,) > 0.
This problem was a real one. A
carpenter often built a special crate.
11
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
12
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
13
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
14
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
THE ANSWER
The radius ( r ) should be 4.08 inches and
the height should be 3.86 inches to have
an open cylinder (no lid) with a maximum
Volume using a sheet the available sheet
of 11x13.75. Notice that the
dimensions do matter although their
product was used in the constraint.
An
odd shaped sheet may not be feasible
even if the model gives a solution.
15
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
16
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
17
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
18
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
19
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
20
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
21
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
22
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
23
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
24
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
25
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
26
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
27
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
28
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
Example 9 Continued,
Ideally, we would have no or lesser
amount of nonlinearity, but there is no
way to express certain chemical ratios
linearly. Notice the rows 22-29 in Figure
6: decision variables must be declared
to be positive if they have to be
positive.
29
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
30
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
31
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
32
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
33
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
34
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
36
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
Max X -1
S.t. x ranging from 1 to 0.75
The first and second derivatives are 2X and
2. X=0 is the answer using calculus. This
problem does not actually need the Golden
Section Method, but it is done for illustration.
37
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
38
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
Unconstrained Optimization
Section
12.6
Theorems 6, 7, 7, 7 provide the basics
of
unconstrained NLPs that may have two or more
decision variables. Example 24 illustrates
these types of problems.
If the problem is
constrained, it is important to know that the
solution (obtained from LINGO) may not always
be the true optimum. It might be a local
optimum. This is not the case if the problem
is unconstrained.
39
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
40
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
We
with all
equality constraints. As shown in equation 12.
Example 28 shows how to perform the
mathematics of the Lagrange multipliers. This
may be a tough task at times.
Good News: LINGO will bypass all the math. You
just type the problem and run it.
41
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
42
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
QUADRATIC PROGRAMMING
(QP) of Section of Section
This12.10
is a very special and a highly realistic
form of NLP. The constraints are linear and
the objective function has a unique and a
mildly non-linear form. The terms of the
objective function can be either in square of
one variable or the multiplication of any of
the two variables.
43
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
QP Contd.
QPs application in portfolio optimization is so
important that LINGO has a special structure for it.
The goal is to find how to allocate our funds to
several securities while minimizing the portfolio
variance and achieving a minimum
return of 12%. Example 33 shows how EXCEL and
LINGO can be used to solve QPs.
44
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
45
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
46
Copyright 2004 Brooks/Cole, a division of Thomson Learning,
47
Copyright 2004 Brooks/Cole, a division of Thomson Learning,