

                   G L O B A L  M I N I M U M

                             (GM)
                           

                         Linas Mockus

            School of Chemical Engineering, Purdue University

            W.Lafayette, IN 47907

            e-mail: mockus@ecn.purdue.edu


    

            ph:  317-494-0368 

            fax: 317-494-0805   


                       GM USERS REFERENCE

           1.  Requirements

         - C++ compiler

         - X Window
 
         - UNIX - SunOS, Solaris, HP-UX, AIX, ULTRIX, or compatible

         - experience in writing simple FORTRAN, C, or C++
           functions. 

           2.  Purpose of GM

Continuous multivariate global optimization.

User defines the
optimization problem in terms of variables describing:

 i. the parameters which we can change,

 ii. a function of those
       variables (called objective),

 iii.  some constraints restricting the possible change of variables.

           Formally:

           min f(x),

           a<=x<=b

           gi(x)<=0,i=1,...,p

           gi(x)=0,i=p+1,...,m,

           Here x is a vector of n variables,

           f(x) is an objective,

           a<=x<=b defines rectangular constraints

           gi(x)<=0,i=1,...,p defines inequality constraints

           gi(x)=0,i=p+1,...,m defines equality constraints

The objective function may be deterministic or (for some
methods) with "noise".

The optimization region may be defined by
rectangular or (for some methods) linear and nonlinear constraints.

           3.  Installation

Software available at e-mail: mockus@ecn.purdue.edu
                          or: audris@stat.cmu.edu

           4.  Initialization

i.  Define the objective as some function with the
name fi. Function fi has two parameters: double array  of values of
each variable and the number  of variables.

ii. Define the "non-interactive" linear or nonlinear constraints
as a function named constr.  It has four parameters: double
array of values of variables, number of variables, double
array  of values of constraints, number of constraints.

The rectangular constraints user can also define
interactively,
during the optimization.

User describes an objective and constraints in
a file named fi.C

The objective:

double fi (const double *xx, int dim)

The constraints:

void constr (const double *x, int n, double *g, int ng)

Start optimize the problem
described in the file fi.C:

test

The software is in the stage of development,
thus please call 'mockus@ecn.purdue.edu' in the case
of any unexpected results.


           5.  Menu System

i.  Main Menu:

 Global, Local, Operations, Quit, Parameters, Results, Output

ii.  Global Optimization Menu:

Bayes1, Mig1, Unt, Exkor, Glopt, Lpmin

iii.  Local Optimization Menu:

Nlp, Flexi, Lbayes

By default the initial point for local optimization is the
result
of previous global optimization.

iv. Operations Menu:

Run, Stop, Exit

v. Quit Command

vi. Parameter Box

User enter parameters of methods and point O.K.
Recomendations how to chose parameters 
see Mockus (1989).
      
vii. Results Box:

Shows the best objective Y and the best variables X(I).
If you prefer no changes then point to O.K.

viii. Output Menu:

Convergence, Projection, Numeric

Convergence window shows how the objective depends on
the iteration number.

Projection windows show how the objective depends on the
different variables.

Numerical window shows the current values of objective and variables.
User enters the number of variable defining the projection.

To see some "invisible" components of vector user
points the down or up arrows. The vector will scroll
if there are invisible components.

To edit a variable user touches BACKSPACE,
edits the variable and then points O.K.

           6.  Description of methods

A conceptual description of methods see Mockus (1989) and (1994)

Here is the short description:

Global Methods:

i. Bayes1 is the Bayesian method by J.Mockus.

- Region: rectangular

- Objective: continuous (possibly with "noise")

- Convergence: to global minimum (in probability if noisy)

- Remarks:

for "expensive" objectives using not to many observations.

ii. Mig1 is uniform Monte Carlo search.

- Region: rectangular

- Objective: general

- Convergence: in probability

- Remarks: 

for inexpensive and irregular objectives using great number of observations.

iii. Unt is extrapolation type method by A. Zilinskas.

- Region: rectangular

- Objective: continuous

- Convergence: to global minimum

- Remarks:

for expensive objectives using not to many  observations.

iv. Exkorr is Bayesian coordinate line search method by A. Zilinskas.

- Region: rectangular

- Objective: continuous

- Convergence: to global minimum along the search line.

- Remarks:

for approximately "separable" objectives and also for preliminary exploration
using the projection windows.

v. Glopt is the clustering method by Torn.

- Region: rectangular

- Objective: continuous

- Convergence: not provided

- Remarks:

works well in many practical problems with moderate number of local minima

vi. Lpmin is uniform deterministic search by I.Sobolj and G. Dzemyda.

- Region: rectangular

- Objective: general

- Convergence: to global minimum.

- Remarks:

for inexpensive objectives using many observations 

Local Methods

i. Nlp is method of nonlinear programming by K. Schittkowski

- Region: defined by linear and nonlinear constraints

- Objective: differentiable

- Convergence: to local minimum

ii. Flexi is simplex method by Nelder, Mead and Himmelblau.

- Region: defined by nonlinear constraints

- Objective: nondifferentiable

- Convergence: not provided

iii. Lbayes is method of stochastic approximation
with Bayesian step size control by J.Mockus.

- Region: rectangular

- Objective: continuous with noise

- Convergence: in probability to local minimum

           7.  Background 

The global optimization software was developed considering
the results
international "competition" of different
algorithms of global optimization, see Dixon and Szego (1978).  Some
experience in real life optimization problems was also used selecting
the set of optimization algorithms.   The set of algorithms of global
 optimization includes four
versions of the Bayesian search, a version of clustering, a version of
uniform deterministic grid, and a version of pure Monte Carlo search.

Usually it is reasonable to start optimization by a global method and to
finish it by some local method.  An exception is two global algorithms:
the clustering, and the Zilinskas version of the Bayesian technique,
both algorithms contain some simple algorithms of local search.  It
means that the local search is not necessary for those two methods, but
it may be useful.

There are three local optimization methods.  One method is of variable
metrics type with Lagrangian multipliers and penalty functions for
constrained optimization of smooth functions, see Schittkowski (1985).
The second method is of symplex type of Nelder and Mead with penalty
functions for constrained optimization of nondifferentiable functions.
The third one is of stochastic approximation
type with Bayesian step size control for "noisy" functions, see Mockus
(1989).

Each subroutine represents a global or a local method.  The choice of
method has to follow the idea that the computational complexity of the
method should roughly correspond to that of the objective function.

For "expensive" functions the Bayesian methods could be recommended.
Those methods need a lot of auxiliary calculations, but each observation
is very efficient.

For "cheep" functions simple grid methods, such that of Monte Carlo or a
uniform deterministic grid, see Sobolj (1969), can be better.  Here
observations are not so efficient, but auxiliary calculations are
negligible.  It explains a relative efficiency of simple methods when
optimizing simple functions.

If we expect the number of local minima to be small, then the clustering
techniques, see Torn (1989), may be the best choice.

For global optimization of one-dimensional functions a relatively simple
Bayesian technique is available.

There are optimization problems where objective functions can be roughly
represented as a sum of components depending on different variables.
Here the Bayesian method of line search along the coordinates usually
shows very good results.  This method globally optimizes one variable at
a time by the one-dimensional Bayesian search.  The difference of this
method from other methods of global optimization is that it depends on
the starting point.  Thus the deviation from the global minimum can be
diminished as desired by applying a multi-start procedure with different
uniformly distributed starting points.

All global methods optimize in a rectangular region.  Therefore we
represent the linear and nonlinear inequality constraints as some
penalty functions.  The same also applies to the local method of
stochastic approximation type.

In local methods of simplex and variable metrics type linear and
nonlinear constraints can be defined directly.  It may be done by
subroutines for constraints, supplied by the user.

The other version of global optimization software is 
a library of portable Fortran subroutines.  The user's guide and source
codes including a floppy disk are included in the book by Mockus (1989).

The portable Fortran version can run on any computer with a standard
Fortran compiler.  Users should represent objective functions in the
form FUNCTION FI(X,N), where X is an array of variables, N is its
dimension.

Rectangular constraints are given by the lower bound array A and the
upper bound array B. Using local methods of simplex and variable metrics
type we may represent constraints by subroutine CONSTR(X,N,G,MC).  Here
G is an array of length MC which contains the values of constraints at
the point X and MC is the number of constraints.
This wersion is convenient while solving the
well defined optimization problems, but not for preliminary
investigations, where an interaction is essential.

The  global
optimization software designed for UNIX and X Window systems
has the excellent interactive facilities plus portability to almost any
computer, including super computers and some parallel computers.

           8. Examples.

Many examples of applications are related to the optimization of
parameters of mathematical models represented as some systems of
nonlinear differential equations.  The objective function $f(x)$ here
depends on a solution of the equations.  Variables $x$ represent the
controlled parameters of the system.  To such a family of problems
belong the three following examples:

-- Maximization of the general yield of differential amplifiers.

-- Optimization of the mechanical system of shock-absorber.

-- Estimation of the parameters of nonlinear regression of an
immunological model.

The last example suggests a broad area for the applications of global
optimization.  It is well known that in nonlinear regression the square
deviation as well as likelihood function could multimodal for some data.
The number of local minima may be very large, even in simple cases.  An
example:

-- Estimation of unknown parameters of bilinear time series.

A large source of difficult global optimization problems is engineering
design.  Here we are optimizing parameters of some mathematical models,
usually nonlinear .  An example:

-- Optimization of composite laminates.

Many laws of nature could be defined in terms of global optimization.
An example:

-- The "Disk" problem: minimization of potential energy of organic
molecules.

We are often not able to describe the behavior of new materials and
technologies by mathematical models, because the corresponding
information and knowledge is not available.  Here we can optimize by
direct experiments, changing the control variables and observing the
results.  An example:
-- The planning of extremal experiments of thermostable polymeric
composition.

The other descriptions of real life examples of global optimization see
Mockus (1989)

         9. References

Dixon L.C.W. and Szego G.P., Towards global optimization,
North Holland, Amsterdam (1978).

J.Mockus "Bayesian Approach to Global
Optimization", Kluwer, 1989.  

Mockus, A. and Mockus, L., Design of software for global
optimization, Informatica, 1, 1990, 71-88.

J. Mockus and L. Mockus L., Bayesian approach to global optimization
and applications to multiobjective and constrained optimization,
of Optimization Theory and Applications 70, July, No. 1, 1991.

J.Mockus,"Application of Bayesian Approach to Numerical Methods
of Global and Stochastic Optimization",
Journal of Global Optimization, 4., 1994, 347-365.

Schittkowski K., NLPQL: A FORTRAN subroutine solving
constrained nonlinear programming problems,Annals of Operations
Research, 5, 1985/86, 485-500
                                                                
Sobolj I.M., On a systematic search in a hypercube, SIAM
Journal on Numerical Analysis, 16, 1967, 790-793.

A.Torn A. and A.Zilinskas A., Global optimization}, Lecture
Notes in Computer Science, # 350, Berlin, Springer- Verlag, 1989.




























