Chapter 2 Graphical Optimization (original) (raw)

Visualization in optimization with Mathematica

Filomat, 2009

We show how the computer algebra system in MATHEMATICA and its graph- ical capabilities can be used in optimization. A package for teaching the graphical solution of two-dimensional and three-dimensional linear program- ming problem is developed.

Optimization Challenge Problems – Optimization Challenge Problems (2-D and Single OF)

2013

The code is in Excel VBA file Two-D Optimization Examples 2013-09-03.xlsm This set of objective functions (OF) was created to provide sample challenges for testing optimizers. The examples are all two-dimensional, having two decision variables (DV) so as to provide visual understanding of the issues that they embody. Most are relatively simple to program and compute rather simply, for user convenience. Most represent physically meaningful situations, for the person who wants to see utility and relevance. All are presented with minimization as the objective. All DVs and OF values are scaled on a 0 to 10 basis for common presentation. Classic challenges to optimizers are objective functions that have: 1. non-quadratic behavior, 2. multiple optima, 3. stochastic responses, 4. asymptotic approach to optima at infinity, 5. hard inequality constraints, or infeasible regions, 6. slope discontinuities (sharp valleys), 7. a gently sagging channel (effectively slope discontinuities), 8. level discontinuities (cliffs), 9. flat spots, 10. nearly flat spots, 11. very thin global optimum in a large surface, improbable to find, 12. discrete, integer, or class variables mixed with continuous variables, 13. underspecified problems with infinite number of equal solutions, and 14. discontinuous response to seemingly continuous DVs because of discretization in a numerical integration. In all equations that follow, x1 and x2 are the DVs, and f_of_x is the OF value. The DVs are programmed for the range [0, 10]. However, not all functions use DV values in that range. So, the DVs are scaled for the appropriate range and labeled x11 and x22. The OF value f_of_x is similarly scaled for a [0, 10] range. Any solution depends on the optimizer algorithm, the coefficients of the algorithm, and the convergence criteria. For instance, a multi-player optimizer has an increased chance of finding the global optimum. An optimizer based on a quadratic surface assumption (such as successive quadratic or Newton's) will jump to the optimum when near it, but can jump in the wrong direction when not in the proximity. The values for optimizer coefficients (scaling, switching, number of players, number of replicates, initial step size, tempering or acceleration) can make an optimizer efficient for one application, but with the same values it might be sluggish or divergent in an application with other features. The convergence criteria may be right for one optimizer, but stop another long before arriving at an optimum. When you are

Lecture 10 Optimization problems for multivariable functions Local maxima and minima -Critical points

(Relevant section from the textbook by Stewart: 14.7) Our goal is to now find maximum and/or minimum values of functions of several variables, e.g., f (x, y) over prescribed domains. As in the case of single-variable functions, we must first establish the notion of critical points of such functions. Recall that a critical point of a function f (x) of a single real variable is a point x for which either (i) f ′ (x) = 0 or (ii) f ′ (x) is undefined. Critical points are possible candidates for points at which f (x) attains a maximum or minimum value over an interval. Also recall that if f ′ (x) = 0, it could be a (i) local minimum, (ii) local maximum or (iii) point of inflection. We can determine the nature of this critical point from a look at f ′′ (x), provided it exists. Up to now, we have encountered three types of critical points for functions f (x, y) of two variables: 1. Local minima: The point (0, 0) is a local minimum for the function f (x, y) = x 2 + y 2 , the graph of which is sketched below. O x y z z = x 2 + y 2 A plot of the countours/level sets of this function will also help us to understand the behaviour of this function around its local minimum. Such a plot, originally presented in Lecture 4, is 67