Upload
others
View
38
Download
0
Embed Size (px)
Citation preview
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox Optimization:Algorithm and Applications
Sebastien Le Digabel
GERAD and Ecole Polytechnique de Montreal
UBCO, 2016–03–03
BBO: Algorithm and Applications 1/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Team and collaborators
I Profs: Charles Audet, Michael Kokkolaras, SLD.
I Research associate: Christophe Tribes.
I Students: Bastien Talgorn, Nadir Amaioua, Stephane Jacquet,Mathilde Peyrega, Sara Seguin, Vincent Garnier, AminaIhaddadene, Mathieu Lemyre Garneau, Loıc Sarrazin.
I Hydro-Quebec: Stephane Alarie, Louis-Alexandre Leclaire.
I LANL: Jerawan C. Armstrong, Brian A. Temple, Kevin L.Buescher.
I Airbus: O. Babando, C. Bes, J. Chaptal, J.-B. Hiriart-Urruty,B. Talgorn, B. Tessier, R. Torres.
BBO: Algorithm and Applications 2/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Presentation outline
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 3/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 4/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization (BBO) problems
I Optimization problem:
minx∈Ω
f(x)
I Evaluations of f (the objective function) and of the functionsdefining Ω are usually the result of a computer code (ablackbox).
I n variables, m general constraints.
I Ω =x ∈ X : cj(x) ≤ 0, j ∈ 1, 2, . . . ,m
⊆ Rn.
I X : Bounds and/or nonquantifiable constraints.
BBO: Algorithm and Applications 5/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackboxes as illustrated by J. Simonis [ISMP 2009]
BBO: Algorithm and Applications 6/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 7/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Snow Water Equivalent (SWE) estimationI Accurate estimate of water stored in snow is crucial to
optimize hydroelectric plants management.
I Exact snow measurement is impossible.
I SWE is measured at specific sites and next interpolated overthe territory.
I Territory is huge: Hydro-Quebec (HQ) operates 565 dams, 75reservoirs, and 56 hydroelectric power plants, located over 90watersheds and covering more than 550,000 km2.
source: Hydro-Quebec.
BBO: Algorithm and Applications 8/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Previous SWE estimation
I Done manually by weighing snow cores at specific sites.
I Each measurement campaign requires 2 weeks.
I Missing measurements due to adverse meteorologicalconditions.
source: Hydro-Quebec.
BBO: Algorithm and Applications 9/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
GMON device
I A new measuring instrument that provides daily automaticSWE.
I GMON for Gamma-MONitoring device: it measures thenatural Gamma radiation emitted from the soil.
I Communicates via satellites.
source: Hydro-Quebec.
BBO: Algorithm and Applications 10/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
SWE estimation from GMON measuresI Kriging interpolation is used to obtain SWE estimation
together with an error map.I How to find the device locations that minimize the kriging
interpolation error of the SWE?
BBO: Algorithm and Applications 11/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Problem formulation
I x ∈ R2N are the locations of N stations.
I Typically, N ≤ 10, so we do not consider it as a variable.
I Ω ⊆ R2 is the feasible domain where the stations can belocated.
I f(x) is a score based on the standard deviation map obtainedby the kriging simulation and is considered as a blackbox.
I Each simulation requires ' 2 seconds, and can only belaunched within the Hydro-Quebec research center (IREQ).
BBO: Algorithm and Applications 12/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Constraints
I GMON stations cannot belocated anywhere.
I Restrictions on:I subsoil properties,I slope,I vegetation,I exploitation,I etc.
BBO: Algorithm and Applications 13/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Constraints
I GMON stations cannot belocated anywhere.
I Restrictions on:I subsoil properties,I slope,I vegetation,I exploitation,I etc.
I Highly fragmented domain.
BBO: Algorithm and Applications 13/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 14/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Setting
We want to identify an unknown object inside a box, using a x-raysource that gives an image on a detector.
Source: LANL – LA-UR-11-0342
In this work, the unknown object is supposed to be spherical.
BBO: Algorithm and Applications 15/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Radiograph
A radiograph is the observed image on the detector. For example:
source: LANL.
BBO: Algorithm and Applications 16/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Description of the problem
I The problem consists to identify the unknown object withsufficient precision so that the object can be classified asdangerous or not.
I Must work rapidly.
I Must work for radiographs not created on a well-controlledexperimental environment.
I Must not crash for unreasonable user inputs.
BBO: Algorithm and Applications 17/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Definition of the optimization problemI Variables:
I They represent a spherical object in 1D.I Categorical variables: Number of layers and type of material of
each layer.I Continuous variables: Radius of each layer.I The number of variables can change depending on the number
of layers.
I Objective function:
I A score associated to the difference between the observedimage on the detector, and a simulated image obtained fromthe candidate object.
I A numerical code – the blackbox – produces this simulatedradiograph, using raytracing.
I Quick to compute.
BBO: Algorithm and Applications 18/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Motivations for MADS and NOMAD
I A blackbox is involved.
I Presence of categorical variables.
I Robustness of the code regarding the uncertainty and noise inthe data.
BBO: Algorithm and Applications 19/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 20/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Aircraft takeoff trajectories
I Collaboration with Airbus mainly via Bastien Talgorn.
I Motivations for MADS and NOMAD:
I A blackbox is involved.
I Biobjective optimization.
I Free software.
I Must execute on different platforms including some old Solarisdistributions.
BBO: Algorithm and Applications 21/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Definition of the optimization problem
I Concept : Optimization of vertical flight path based onprocedures designed to reduce noise emission at departure toprotect airport vicinity.
I Minimization of environmental and economical impact: Noiseand fuel consumption.
I NADP (Noise Abatement Departure Procedure) variables:During departure phase, the aircraft will target its climbconfiguration:
I Increase the speed up to climb speed (acceleration phase).I Reduce the engine rate to climb thrust (reduction phase).I Gain altitude.
BBO: Algorithm and Applications 22/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Parametric Trajectory: 5 optimization variables (*)
BBO: Algorithm and Applications 23/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
The blackbox: MCDP: Multi-Criteria DepartureProcedure
One evaluation ' 2 seconds.
BBO: Algorithm and Applications 24/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Special features
I The best trajectory parameters are returned to the pilot whoenters them in the aircraft system manually.
I Finite precision on optimization parameters: Discretization ofoptimization variables (100 to 1000 different values for eachparameter).
I The variables have been defined as integers in NOMAD(minimum mesh size of 1 and rounding of directions).
BBO: Algorithm and Applications 25/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
BBO challenges
I In general:
I A blackbox is involved, nonsmoothness, noise→ no derivatives.
I Runtimes, software failures, several local optima.
I In particular, for the three examples:
I Disconnected feasible domain.
I Discrete and categorical variables.
I Two objectives.
I Solutions with limited precision (granularity).
BBO: Algorithm and Applications 26/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 27/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Mesh Adaptive Direct Search (MADS)
I [Audet and Dennis, Jr., 2006].
I Iterative algorithm that evaluates the blackbox at some trialpoints on a spatial discretization called the mesh.
I One iteration = search and poll.
I The search allows trial points generated anywhere on themesh.
I The poll consists in generating a list of trial pointsconstructed from poll directions. These directions grow dense.
I At the end of the iteration, the mesh size is reduced if no newsuccess point is found.
BBO: Algorithm and Applications 28/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Mesh Adaptive Direct Search (MADS)
I [Audet and Dennis, Jr., 2006].
I Iterative algorithm that evaluates the blackbox at some trialpoints on a spatial discretization called the mesh.
I One iteration = search and poll.
I The search allows trial points generated anywhere on themesh.
I The poll consists in generating a list of trial pointsconstructed from poll directions. These directions grow dense.
I At the end of the iteration, the mesh size is reduced if no newsuccess point is found.
BBO: Algorithm and Applications 28/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Mesh Adaptive Direct Search (MADS)
I [Audet and Dennis, Jr., 2006].
I Iterative algorithm that evaluates the blackbox at some trialpoints on a spatial discretization called the mesh.
I One iteration = search and poll.
I The search allows trial points generated anywhere on themesh.
I The poll consists in generating a list of trial pointsconstructed from poll directions. These directions grow dense.
I At the end of the iteration, the mesh size is reduced if no newsuccess point is found.
BBO: Algorithm and Applications 28/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Mesh Adaptive Direct Search (MADS)
I [Audet and Dennis, Jr., 2006].
I Iterative algorithm that evaluates the blackbox at some trialpoints on a spatial discretization called the mesh.
I One iteration = search and poll.
I The search allows trial points generated anywhere on themesh.
I The poll consists in generating a list of trial pointsconstructed from poll directions. These directions grow dense.
I At the end of the iteration, the mesh size is reduced if no newsuccess point is found.
BBO: Algorithm and Applications 28/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
[0] Initializations (x0, ∆0 )[1] Iteration k
[1.1] Searchselect a finite number of mesh pointsevaluate candidates opportunistically
[1.2] Poll (if the Search failed)construct poll set Pk = xk + ∆kd : d ∈ Dksort(Pk)evaluate candidates opportunistically
[2] Updatesif success
xk+1 ← success pointincrease ∆k
elsexk+1 ← xk
decrease ∆k
k ← k + 1, stop or go to [1]
BBO: Algorithm and Applications 29/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Poll illustration (successive fails and mesh shrinks)
∆k = 1
rxk
rp1
rp2
r
p3
trial points=p1, p2, p3
BBO: Algorithm and Applications 30/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Poll illustration (successive fails and mesh shrinks)
∆k = 1
rxk
rp1
rp2
r
p3
trial points=p1, p2, p3
∆k+1 = 1/4
rxkr
p4 rp5
r
p6
= p4, p5, p6
BBO: Algorithm and Applications 30/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Poll illustration (successive fails and mesh shrinks)
∆k = 1
rxk
rp1
rp2
r
p3
trial points=p1, p2, p3
∆k+1 = 1/4
rxkr
p4 rp5
r
p6
= p4, p5, p6
∆k+2 = 1/16
rxk
rp7
r p8rSSp9
= p7, p8, p9
BBO: Algorithm and Applications 30/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Convergence results
I MADS is backed by a convergence analysis based on thecalculus for nonsmooth functions [Clarke, 1983].
I It produces solutions satisfying optimality conditions“proportional” to the smoothness of the problem.
I Summary of the results:
Unconstrained Constrained
Smooth ∇f(x) = 0 f ′(x; d) ≥ 0 for all d ∈ TΩ(x)
Nonsmooth 0 ∈ ∂f(x) f(x; d) ≥ 0 for all d ∈ THΩ (x)
BBO: Algorithm and Applications 31/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
MADS extensions
I Constraints handling with the Progressive Barriertechnique [Audet and Dennis, Jr., 2009].
I Surrogates [Talgorn et al., 2015].
I Categorical variables [Abramson, 2004].
I Global optimization [Audet et al., 2008a].
I Parallelism [Le Digabel et al., 2010, Audet et al., 2008b].
I Multiobjective optimization [Audet et al., 2008c].
I Sensitivity analysis [Audet et al., 2012].
I Dynamic scaling [Audet et al., 2016].
BBO: Algorithm and Applications 32/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 33/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
NOMAD (Nonlinear Optimization with MADS)I C++ implementation of MADS.
I Standard C++, no other package needed.
I Parallel versions with MPI.
I Runs on Linux, Unix, Mac OS X and Windows.
I MATLAB versions.
I Command-line and library interfaces.
I Distributed under the LGPL license.
I Complete user guide available in the package.
I Doxygen documentation available online.
I Download at https://www.gerad.ca/nomad.
BBO: Algorithm and Applications 34/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
NOMAD: History and team
I Developed since 2000.
I Current version: 3.7.
I Algorithm designers:I M. Abramson, C. Audet, J. Dennis, S. Le Digabel, and
C. Tribes.
I Developers:I Versions 1 and 2: G. Couture.I Version 3 (2008): S. Le Digabel and C. Tribes.
I Support at [email protected].
BBO: Algorithm and Applications 35/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
More than 6,500 certified downloads since 2008.
0
1000
2000
3000
4000
5000
6000
7000
2008-10-21 2010-03-05 2011-07-18 2012-11-29 2014-04-13 2015-08-26
Softpedia
Sourceforge
Gerad
Total
BBO: Algorithm and Applications 36/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Main functionalities (1/2)
I Single or biobjective optimization.
I Variables:I Continuous, integer, binary, categorical.I Periodic.I Fixed.I Groups of variables.
I Searches:I Latin-Hypercube (LH).I Variable Neighborhood Search (VNS).I Quadratic models.I Statistical surrogates.I User search.
BBO: Algorithm and Applications 37/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Main functionalities (2/2)
I Constraints treated with 4 different methods:I Extreme Barrier.I Progressive Barrier (default).I Progressive-to-Extreme Barrier.I Filter method.
I Several direction types:I Coordinate directions.I LT-MADS.I OrthoMADS.I Hybrid combinations.
I Sensitivity analysis.
(all items correspond to published or submitted papers).
BBO: Algorithm and Applications 38/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
NOMAD installation
I Pre-compiled executables are available for Windows and Mac.
I Installation programs copy these executables.
I On Unix/Linux, after download, launch an installation script.
I Two ways to use NOMAD: batch mode or library mode.
BBO: Algorithm and Applications 39/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox conception (batch mode)
I Command-line program that takes in argument a filecontaining x, and displays the values of f(x) and the cj(x)’s.
I Can be coded in any language.
I Typically: > bb.exe x.txt displays f c1 c2 (objectiveand two constraints).
BBO: Algorithm and Applications 40/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Important parameters
I Necessary parameters: Blackbox characteristics (dimension n,number of constraints, etc.), starting point (x0).
I All algorithmic parameters have default values. The mostimportant are:
I Maximum number of blackbox evaluations,I Starting point (more than one can be defined),I Types of directions (more than one can be defined),I Initial mesh size,I Constraint types,I Latin-Hypercube sampling,I Seeds.
I See the user guide for the description of all parameters, or usethe nomad -h option.
BBO: Algorithm and Applications 41/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Run NOMAD> nomad parameters.txt
BBO: Algorithm and Applications 42/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Advanced functionalities (library mode)
I No system calls: the code executes faster (more than twice).
I Easy to program multiple runs in parallel with different seeds.
I The user can program a custom search strategy.
I The user can pre-process all evaluation points before they areevaluated.
I The user can decide the priority in which trial points areevaluated.
I The user can indicate user-functions that will be called atsome events (new success, new iteration, new MADS run inbi-objective optimization)
BBO: Algorithm and Applications 43/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Examples included in the NOMAD package
These examples illustrate other possibilities:
I Multi-start from points generated with LH sampling.
I Compatibility with previous versions of NOMAD.
I Problems used in library mode and coded as:I A Windows DLL.I A GAMS program.I A CUTEst problem.I A FORTRAN code.
I A GUI prototype in JAVA.
BBO: Algorithm and Applications 44/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Other MADS distributions
I Available in the MATLAB Optimization Toolbox.Old version, not maintained.
I MATLAB version within the Opti Toolbox package.http://www.i2c2.aut.ac.nz/Wiki/OPTI.
I Excel with the OpenSolver tool.http://www.opensolver.org (GPLv3).
BBO: Algorithm and Applications 45/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Summary
I Blackbox optimization motivated by industrial applications.
I Algorithmic features backed by mathematical convergenceanalyses and published in optimization journals.
I NOMAD: Software package implementing MADS.
I LGPL license.
I Features: Constraints, biobjective, global opt., surrogates,several types of variables, parallelism.
I NOMAD is rigorously supported.
I NOMAD can be customized through collaborations.
BBO: Algorithm and Applications 46/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
Blackbox optimization
Snow Water Equivalent estimation
Characterization of objects from radiographs
Biobjective optimization of aircraft takeoff trajectories
The MADS algorithm
The NOMAD software package
BBO: Algorithm and Applications 47/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
References I
Abramson, M. (2004).
Mixed variable optimization of a Load-Bearing thermal insulation system using a filter pattern searchalgorithm.Optimization and Engineering, 5(2):157–177.
Alarie, S., Audet, C., Garnier, V., Le Digabel, S., and Leclaire, L.-A. (2013).
Snow water equivalent estimation using blackbox optimization.Pacific Journal of Optimization, 9(1):1–21.
Armstrong, J. and Favorite, J. (2016).
Using a derivative-free optimization method for multiple solutions of inverse transport problems.Optimization and Engineering, 17(1):105–125.
Audet, C., Bechard, V., and Le Digabel, S. (2008a).
Nonsmooth optimization through mesh adaptive direct search and variable neighborhood search.Journal of Global Optimization, 41(2):299–318.
Audet, C. and Dennis, Jr., J. (2006).
Mesh adaptive direct search algorithms for constrained optimization.SIAM Journal on Optimization, 17(1):188–217.
Audet, C. and Dennis, Jr., J. (2009).
A Progressive Barrier for Derivative-Free Nonlinear Programming.SIAM Journal on Optimization, 20(1):445–472.
BBO: Algorithm and Applications 48/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
References II
Audet, C., Dennis, Jr., J., and Le Digabel, S. (2008b).
Parallel space decomposition of the mesh adaptive direct search algorithm.SIAM Journal on Optimization, 19(3):1150–1170.
Audet, C., Dennis, Jr., J., and Le Digabel, S. (2012).
Trade-off studies in blackbox optimization.Optimization Methods and Software, 27(4–5):613–624.
Audet, C., Le Digabel, S., and Tribes, C. (2016).
Dynamic scaling in the Mesh Adaptive Direct Search algorithm for blackbox optimization.To appear in Optimization and Engineering.
Audet, C., Savard, G., and Zghal, W. (2008c).
Multiobjective optimization through a series of single-objective formulations.SIAM Journal on Optimization, 19(1):188–210.
Clarke, F. (1983).
Optimization and Nonsmooth Analysis.John Wiley & Sons, New York.Reissued in 1990 by SIAM Publications, Philadelphia, as Vol. 5 in the series Classics in Applied Mathematics.
Le Digabel, S. (2011).
Algorithm 909: NOMAD: Nonlinear Optimization with the MADS algorithm.ACM Transactions on Mathematical Software, 37(4):44:1–44:15.
BBO: Algorithm and Applications 49/50
BBO SWE Est. Radiographs Trajectories MADS NOMAD Refs
References III
Le Digabel, S., Abramson, M., Audet, C., and Dennis, Jr., J. (2010).
Parallel Versions of the MADS Algorithm for Black-Box Optimization.In Optimization days, Montreal. GERAD.Slides available at https://www.gerad.ca/Sebastien.Le.Digabel/talks/2010_JOPT_25mins.pdf.
Talgorn, B., Le Digabel, S., and Kokkolaras, M. (2015).
Statistical Surrogate Formulations for Simulation-Based Design Optimization.Journal of Mechanical Design, 137(2):021405–1–021405–18.
BBO: Algorithm and Applications 50/50