24
GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE ORIENTED ARCHITECTURE Chaitra Raghunath a , Tyler H. Chang a , Layne T. Watson abc Mohamed Jrad c , Rakesh K. Kapania c Departments of Computer Science a , Mathematics b , and Aerospace & Ocean Engineering c Virginia Polytechnic Institute and State University Blacksburg, VA 24061-0106 USA Raymond M. Kolonay AFRL/RQVC 2210 8th Street, Bldg. 146 Wright-Patterson Air Force Base Dayton, OH 45433 http://people.cs.vt.edu/˜thchang/SORCER.pdf

GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATIONIN A SERVICE ORIENTED ARCHITECTURE

Chaitra Raghunatha, Tyler H. Changa, Layne T. Watsonabc

Mohamed Jradc, Rakesh K. Kapaniac

Departments of Computer Sciencea,

Mathematicsb, and Aerospace & Ocean Engineeringc

Virginia Polytechnic Institute and State UniversityBlacksburg, VA 24061­0106 USA

Raymond M. KolonayAFRL/RQVC

2210 8th Street, Bldg. 146Wright­Patterson Air Force Base

Dayton, OH 45433

http://people.cs.vt.edu/˜thchang/SORCER.pdf

Page 2: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Multidisciplinary Design Optimization (MDO)

Consider the MDO of an aircraft design problem:

• Used during design space exploration (conceptual design step)• Goal of achieving optimal design over multiple disciplines• Reduces size of potential design space in future steps

Problem: Traditional MDO uses low fidelity models with poor accuracy

Potential Solution: Higher fidelity physics­based modeling tools

Drawback: High fidelity models can be prohibitively complex

2 Virginia Tech

Page 3: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Service Oriented Architectures & SORCER

Service Oriented Architecture (SOA) provides a framework for distributedcomputing:

• Homo­ and/or heterogeneous resources are interoperable, reusable, andloosely coupled services

• Dynamically allocate resources upon service request• Service ORiented Computing EnviRonment (SORCER) layered over FIPER

metacompute grid

Service

Registry

Find

Service

Requestor

Publish

Bind

Service

Requestor

Service

Provider

3 Virginia Tech

Page 4: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Optimization Algorithms

In this work we consider two optimization algorithms used in MDO:

VTDirect95• For deterministic global optimization• Fortran 95 implementations of D. R. Jones’ Dividing Rectangles (DIRECT)

algorithm• Parallel and serial codes

QNSTOP• For stochastic global optimization• Quasi­Newton method in Fortran 2003• Parallel and serial codes

4 Virginia Tech

Page 5: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Objectives

Provide VTDirect95 and QNSTOP as services on a SORCER grid

• Dynamically distribute function evaluations

Study the overhead of using SORCER for distributed optimization

5 Virginia Tech

Page 6: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: SORCER ­ SOOA

Service Object­Oriented Architecture (SOOA)

Service

Provider

Service

RequestorProxy

Object

Code

Server

Service

RegistryProxy

Object

6 Virginia Tech

Page 7: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: SORCER ­ Implementation

Implementation• Uses Jini (Apache River) connection technology• Java based services (for interoperability)• Leverages JavaSpaces for dynamically load balanced network

Service provider types:• Analysis providers• Model providers

Abstraction layers• Exertion­oriented programming (EOP)• Var­oriented programming (VOP)• Var­oriented modelling (VOM)

7 Virginia Tech

Page 8: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: VTDIRECT95 ­ basic algorithm

Based on Dividing Rectangles (DIRECT) by D.R. Jones

0.0 0.2 0.4 0.6 0.8 1.00.0

0.2

0.4

0.6

0.8

1.0

0.0 0.2 0.4 0.6 0.8 1.00.0

0.2

0.4

0.6

0.8

1.0

after 10 iterationsafter 5 iterations

after 1 iterationintitial

0.0 0.2 0.4 0.6 0.8 1.00.0

0.2

0.4

0.6

0.8

1.0

0.0 0.2 0.4 0.6 0.8 1.00.0

0.2

0.4

0.6

0.8

1.0

3.0 -- 3.5 3.5 -- 3.9 3.9 -- 4.3 4.3 -- 4.8 4.8 -- 5.2 5.2 -- 5.7 5.7 -- 6.2 6.2 -- 6.6 6.6 -- 7.0 7.0 -- 7.5 Points

8 Virginia Tech

Page 9: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: VTDIRECT95 ­ parallel algorithm

The parallel VTDIRECT95 algorithm (pVTdirect) is fully distributed:• Problem divided between multiple masters to share memory burden• Function evaluation tasks distributed to workers

SD

SD SD

SD

global worker pool

1

SM

SM

1,1

SM 1,n1,22

SM2,1

m

SMm,1

3 SM3,1

masterssubdomain

workersW1 W2 W3 Wk

9 Virginia Tech

Page 10: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: QNSTOP ­ algorithm

Step 1 (regression experiment): Given a feasible set Θ, a current iterate Xk,and a radius τk:

• Compute the ellipsoidal design region Ek(τk) centered at Xk

• Compute LS estimate for the gradient gk from uniform sampling of Ek(τk)

Step 2 (secant update): Estimate Hessian matrix Hk.

Step 3 (update iterate): Calculate the next iterate Xk+1 from a scaling matrix Wk

and lagrange multiplier µk

• Project Xk onto the feasible set Θ

Step 4 (update subsequent design ellipsoid): Compute an updated scalingmatrix Wk+1.

Step 5: If room for more function evaluations in budget go to Step 1. Otherwise,the algorithm terminates.

10 Virginia Tech

Page 11: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Background: QNSTOPP ­ parallelism

Parallel Algorithm QNSTOPP (w/ OpenMP)

Sources of parallelism:

• Individual function evaluations

• Loop over samples in experimental design

• Loop over start points

11 Virginia Tech

Page 12: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Method: JNI Wrappers

Java Native Interface (JNI) libraries used to wrap Fortran optimization code in Java(as SORCER analysis service)

• Leverage invocation interface to allow native C/C++ code to run in JVM• C “glue code" needed to wrap Fortran routines• Objective functions are analysis providers invoked by optimization algorithm

12 Virginia Tech

Page 13: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Method: pVTdirect

Parallel VTDIRECT95 subroutine (pVTdirect) fundamentally incompatible withSORCER

• SORCER assumes master/slave paradigm• pVTdirect is fully distributed for scalability

13 Virginia Tech

Page 14: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Method: QNSTOPP

Parallel QNSTOP subroutine (QNSTOPP) parallelized over sampling of designregion

• Chunked out so that n function evaluations are requested at a time viaSORCER service requests

• Leads to n way parallelism wrt objective function evaluations

14 Virginia Tech

Page 15: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Experiment: EBF3PanelOpt

Framework for optimization of curvilinearly stiffened panels (wrt panel mass)• Python based

15 Virginia Tech

Page 16: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Experiment: EBF3PanelOpt Implementation

EBF3PanelOpt is an analysis provider distributed over SORCER network using:• JavaSpaces: exertions dropped into JavaSpace and discovered by providers

via Jini

16 Virginia Tech

Page 17: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Experiment: Catalog Alternative

SORCER catalog matches services to predefined list of providers

17 Virginia Tech

Page 18: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Experiment: Setup

2 identical Intel i7­3770 machines (Ivy Bridge) @3.4 GHz

• Quad­core w/ hyperthreading

• 16 GB memory

• Optimization function & model provider run on one machine, EBF3PanelOptanalysis provider on the other

• For QNSTOPP # threads set to 4

• For VTdirect and QNSTOPS (serial), only 1 analysis provider used at a time

18 Virginia Tech

Page 19: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Experiment: Terminology

Parallel efficiency of QNSTOPP w/ and w/o SORCER modelled by:

Ep =

(

(QNSTOPS time)/(QNSTOPP time))

(total number of OMP threads/analysis providers).

“Script Robustness” is a Java GenericUtil for increased robustness of scripts andcommunication links across different systems

19 Virginia Tech

Page 20: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Results: Table 1

Execution times in seconds for pylon wing panel optimization with 2 stiffener panels

VTdir pVTdir QNSTOPS QNSTOPP Ep

SORCER and script robustness 13,009 N/A 11,388 3,545 0.80SORCER w/o script robustness 8,957 N/A 7,994 2,542 0.79SORCER/Catalog w/o script robust. 8,487 N/A 7,597 2,458 0.77

W/o SORCER, w/o script robust. 8,460 2,924 7,560 2,309 0.82

20 Virginia Tech

Page 21: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Results: Table 2

Execution times in seconds for pylon wing panel optimization with 4 stiffener panels

VTdir pVTdir QNSTOPS QNSTOPP Ep

SORCER w/ script robustness 14,450 N/A 10,370 3,676 0.71

SORCER w/o script robustness 10,384 N/A 7,451 2,697 0.69SORCER/Catalog w/o script robust. 9,815 N/A 7,088 2,615 0.68W/o SORCER, w/o script robust. 9,786 3,789 7,052 2,408 0.73

21 Virginia Tech

Page 22: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Results: Table 3

Objective function evaluation times in seconds for pylon wing panel (2 & 4 stiffeners)

Note: 2 stiffeners = 13 dimensional problem, 4 stiffeners = 25 dimensional problem

For 100 function evaluations done through VTdirect, average function evaluation cost:

n = 13 n = 25

With SORCER and script robustness 11.13 12.90With SORCER, without script robustness 7.36 9.14

Without SORCER and script robustness 7.32 9.10

22 Virginia Tech

Page 23: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Discussion

Advantages:

• Dynamic distributed resource management

• High level of abstraction, tailored to modelling/design analyses

• Code reusability

Disadvantages:

• Heavyweight (in comparison to Condor, Globus, MPI)

• Overhead of wrapping existing code with JNI

23 Virginia Tech

Page 24: GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN …people.cs.vt.edu/~thchang/files/pres/sorc_pres.pdf · 2020-04-16 · GLOBAL DETERMINISTIC AND STOCHASTIC OPTIMIZATION IN A SERVICE

Thanks for Your Time!

Acknowledgements

This material is based on research sponsored by Air Force Research Laboratoryunder agreement number FA8650­09­2­3938. The U.S. Government is authorizedto reproduce and distribute reprints for Governmental purposes not withstandingany copyright notation thereon. The views and conclusions contained herein arethose of the authors and should not be interpreted as necessarily representingthe official policies or endorsements, either expressed or implied, of Air ForceResearch Laboratory or the U.S. Government. The EBF3PanelOpt code wasdeveloped under a research contract from NASA Fundamental AeronauticsProgram to Virginia Polytechnic Institute and State University with Karen M. B.Taminger as the Program Manager.

24 Virginia Tech