A short introduction to embedded optimization

Similar documents
Intermediate Production Storage Dimensioning Using Occupancy-dependent Key Performance Indicators

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

University of Waterloo Department of Electrical and Computer Engineering ECE 457A: Cooperative and Adaptive Algorithms Midterm Examination

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

Application of a Genetic Algorithm to a Scheduling Assignement Problem

CHAPTER 4 GENETIC ALGORITHM

Artificial Intelligence

GENETIC ALGORITHM with Hands-On exercise

Escaping Local Optima: Genetic Algorithm

Metaheuristic Development Methodology. Fall 2009 Instructor: Dr. Masoud Yaghini

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

A Steady-State Genetic Algorithm for Traveling Salesman Problem with Pickup and Delivery

Introduction to Optimization

Introduction to Optimization

Artificial Intelligence

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

TDDC17. Intuitions behind heuristic search. Recall Uniform-Cost Search. Best-First Search. f(n) =... + h(n) g(n) = cost of path from root node to n

1. Introduction. 2. Motivation and Problem Definition. Volume 8 Issue 2, February Susmita Mohapatra

Mutations for Permutations

3.6.2 Generating admissible heuristics from relaxed problems

Artificial Intelligence

Outline. Best-first search. Greedy best-first search A* search Heuristics Local search algorithms

Suppose you have a problem You don t know how to solve it What can you do? Can you use a computer to somehow find a solution for you?

Introduction to Genetic Algorithms. Genetic Algorithms

The Genetic Algorithm for finding the maxima of single-variable functions

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

March 19, Heuristics for Optimization. Outline. Problem formulation. Genetic algorithms

Comparative Analysis of Genetic Algorithm Implementations

Non-deterministic Search techniques. Emma Hart

Machine Learning for Software Engineering

A Parallel Architecture for the Generalized Traveling Salesman Problem

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

TDDC17. Intuitions behind heuristic search. Best-First Search. Recall Uniform-Cost Search. f(n) =... + h(n) g(n) = cost of path from root node to n

Outline. Motivation. Introduction of GAs. Genetic Algorithm 9/7/2017. Motivation Genetic algorithms An illustrative example Hypothesis space search

Sparse Matrices Reordering using Evolutionary Algorithms: A Seeded Approach

Computational Financial Modeling

ACO and other (meta)heuristics for CO

CS:4420 Artificial Intelligence

The Parallel Software Design Process. Parallel Software Design

Hill Climbing. Assume a heuristic value for each assignment of values to all variables. Maintain an assignment of a value to each variable.

Traveling Salesman Problem. Java Genetic Algorithm Solution

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

A Modified Genetic Algorithm for Process Scheduling in Distributed System

Informed Search. Dr. Richard J. Povinelli. Copyright Richard J. Povinelli Page 1

Single Candidate Methods

Algorithms & Complexity

Informed Search and Exploration

mywbut.com Informed Search Strategies-II

Informed Search and Exploration

A Two-Stage Stochastic Programming Approach for Location-Allocation Models in Uncertain Environments

Optimizing the Sailing Route for Fixed Groundfish Survey Stations

Local Search (Ch )

Search Algorithms for Regression Test Suite Minimisation

Local Search. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Algorithm Design (4) Metaheuristics

BI-OBJECTIVE EVOLUTIONARY ALGORITHM FOR FLEXIBLE JOB-SHOP SCHEDULING PROBLEM. Minimizing Make Span and the Total Workload of Machines

Lecture 9. Heuristic search, continued. CS-424 Gregory Dudek

Automatic Generation of Test Case based on GATS Algorithm *

Local Search. CS 486/686: Introduction to Artificial Intelligence

Informed search algorithms. Chapter 4

Artificial Intelligence

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018

Introduction to Combinatorial Algorithms

Solving Traveling Salesman Problem Using Parallel Genetic. Algorithm and Simulated Annealing

Introduction to Computer Science and Programming for Astronomers

Lecture 4. Convexity Robust cost functions Optimizing non-convex functions. 3B1B Optimization Michaelmas 2017 A. Zisserman

Research Incubator: Combinatorial Optimization. Dr. Lixin Tao December 9, 2003

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Sina Institute, University of Birzeit

Design and Analysis of Algorithms

Welfare Navigation Using Genetic Algorithm

Heuristic Optimisation

Artificial Intelligence. 2. Informed Search

Experimental Comparison of Different Techniques to Generate Adaptive Sequences

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on Artificial Intelligence,

Dr. Mustafa Jarrar. Chapter 4 Informed Searching. Artificial Intelligence. Sina Institute, University of Birzeit

Image Processing algorithm for matching horizons across faults in seismic data

Evolutionary Computation Algorithms for Cryptanalysis: A Study

Evolutionary Algorithm for Embedded System Topology Optimization. Supervisor: Prof. Dr. Martin Radetzki Author: Haowei Wang

DERIVATIVE-FREE OPTIMIZATION

Comparison between Neighbourhood and Genetic Algorithms on two Analytic Objective Functions and on a 2.5D Synthetic Seismic Inverse Problems

Comparison of Heuristics for the Colorful Traveling Salesman Problem

Chapter 14 Global Search Algorithms

Solving ISP Problem by Using Genetic Algorithm

Artificial Intelligence p.1/49. n-queens. Artificial Intelligence p.2/49. Initial state: the empty board or a board with n random

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

Parallel Computing in Combinatorial Optimization

A COMPARATIVE STUDY OF FIVE PARALLEL GENETIC ALGORITHMS USING THE TRAVELING SALESMAN PROBLEM

Gradient Descent. 1) S! initial state 2) Repeat: Similar to: - hill climbing with h - gradient descent over continuous space

The study of comparisons of three crossover operators in genetic algorithm for solving single machine scheduling problem. Quan OuYang, Hongyun XU a*

Wissensverarbeitung. - Search - Alexander Felfernig und Gerald Steinbauer Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria

Solving A Nonlinear Side Constrained Transportation Problem. by Using Spanning Tree-based Genetic Algorithm. with Fuzzy Logic Controller

Informed search algorithms. Chapter 4

Using Genetic Algorithms to optimize ACS-TSP

Introduction to Genetic Algorithms

Simulative Algorithm Analysis in Online Optimization with Lookahead

Task Graph Scheduling on Multiprocessor System using Genetic Algorithm

Artificial Intelligence

Vorlesung Grundlagen der Künstlichen Intelligenz

Transcription:

A short introduction to embedded optimization Tecnomatix Plant Simulation Worldwide User Conference June 22nd, 2016 Realize innovation. A short introduction to embedded optimization Table of content 1. Simulation and Optimization 2. Genetic Algorithms 3. Basic Objects for Genetic Algorithms 4. Sequence Optimization 5. Optimization as an Integrated Component 6. Approximation Solutions for Stochastic Models 19 3 6 9 11 16 Page 2

1. Simulation and Optimization Connections of Simulation and Optimization 1. The simulation is used as evaluation function of optimization We are looking for optimal parameters for a model. By systematic changes of parameters we can determine a satisfactory model configuration. Optimize r Modification Evaluation Model 2. The optimization is an integrated component of a simulation. A parent simulation is interrupted and an optimization of the current state is performed. Simulation time Optimize r A further structural connections is the use of simulation results as starting values for an optimization. See Chapter 11: L. Iitzsche, P. Schmidt, S, Völker in Lothar März, Winfried Krug, Oliver Rose, Gerald Weigert (Hrsg.) Simulation und Optimierung in Produktion und Such optimization is possibly based on pure calculations. Page 3 1. Simulation and Optimization Characteristic properties of Optimization Problems In most applications multiple targets are considered which have opposite nature and must be described in a single numerical evaluation value. Combination of several input parameter settings 1. Determination of sequences 2. Dimensioning of production resources. Solving of Trade-off 1. Reduce throughput times by prevention of waiting time 2. Just-in-time delivery 3. Reduction of the warehouse stock and associated costs We distinguish so called basic tasks 1. Sequence tasks (find a numbering of a finite set) 2. Allocation tasks (find a value of a finite range). Page 4

1. Simulation and Optimization Exact and Heuristic Methods for Optimization Problems Basic tasks are well examined in Operations Research. The algorithms Branch & Bound and Dynamic Programming for the Traveling Salesman Problem are described in the Example Collection (open via the Start Page). For basic tasks with practical important problem size and combined tasks there are no efficient algorithms, which find the optimal solution in reasonable computational time. Therefore heuristic methods are used, like Hill- Climbing, Simulated Annealing, Tabu Search and Genetic Page 5 Algorithms (shorted by GA). 2. Genetic Algorithms Genetic Algorithms are iterative stochastic search algorithms based on natural mechanisms of the biological evolution. GA operate on a set of solutions of a combined basic problems. The notions Generation, Individuals and Chromosomes All properties of living organisms are coded in the biologic material DNA in a sequential manner. All solutions, which are currently under consideration in a certain optimization step, form a Generation. A solution of the combined task is called an Individual. A solution of an basic task is considered as Chromosome. Page 6

2. Genetic Algorithms The Ideas and the Structure of Genetic Algorithms Genetic Algorithms model natural processes of the evolution. The Evolution Cycle Initialization The Fitness of the individuals describes, how well it is adapted to the environment. This evaluation is determined by the combination of their elementary properties. The Fitness can be determined by simulation or calculation. Evaluation Termination condition Parent selection Stop 1. Recombination: Use of properties of previous generation (Selection of 2 Parents according to the fitness) 2. Mutation: Generate 2 children per family by random application of Genetic Operations, like Crossover, Mutation, Inversion 3. Page Selection: 7 Select one offspring per family (child or Genetic Operators Evaluation Offspring selection 2. Genetic Algorithms The number of resulting evaluations Each new generated individual must be evaluated. The first generation has the Generation size individuals. All following generations have Generation size families. Each family has 2 children, which must be evaluated. Number of evaluations = Generation size * (2 * Number of Generations - 1) Please note, that in a stochastic simulation study an evaluations needs more than 1 simulation runs (observations). Page 8

3. Basic Objects for Genetic Algorithms Five Basic Objects for the Optimization by GA The controller GAOptimization Number and size of generations, Direction of the optimization (minimum or maximum) Termination condition Definition of the selection of parents and offspring Controls, such as for the fitness calculation Recording of generated individuals The other four objects are GA tables for basic tasks and its Genetic Operators. GASequence: Sequence task for a given number of items GASelection: Selection task of a certain number of elements a given number of items GARangeAllocation: Determine an item of a range between two bounds GASetAllocation: Determine an item of a set of elements Page 9 3. Basic Objects for Genetic Algorithms How do the Basic Objects work Determine the maximum of Rastigrin s Function: Fitness = 20 u*u - cos(2*pi*u) v*v - cos(2*pi*v) for GA -1 < are u,v well < 1suited for problems with multiple peaks with similar fitness. In our examples we have four maxima (± 0.5, ± 0.5) with the same value 21,5. The picture is generated by: www.wolframalpha.com Page 10

4. Sequence Optimization We will find the sequence of the Delivery table of the source, such that the throughput time for the given orders is minimal. The throughput time is determined by the setup matrix. The Plant Simulation model for a deterministic study in English class library is generated by executing a meth Start Plant Simulation with the shortcut opt /UILanguage:ENU. For this example the resulting throughput time is 8 + Siemens 1 + 6 AG + 2016 2 + 2 + 3 + 3 + 9 + 4 + 4 = 42. Page 11 The optimal solution is obvious. Create a model with model language Engli Select the Menu File > Preferences > Tab G 4. Sequence Optimization The evaluation of a sequence is done by simulation. For the optimization we apply the GAwizard. The fitness calculation can be defined as a weighted sum of multiple simulation results in the table Fitness. Drag & Drop the Eventcontroller onto the GAwizard. There are no general recommendations for the parameters of the Genetic Algorithm. For sequence tasks a generation size between 50 and 70 is suitable. Page 12

4. Sequence Optimization Press the Shift-Key and Drag & Drop the Delivery table of the source onto the GAwizard. The optimization is started on the second tab of the GAwizard. The results of the optimization can be displayed on the third tab. Page 13 4. Sequence Optimization After the optimization the best solution which was found is set in the model. You find the best different solutions on the third tab. Page 14

4. Sequence Optimization Visualization the Optimization Progress The Performance Graph shows a typical appearance of Genetic Algorithms. It is opened by the button Evolution. The worst individual in a generation also improves if a better individual is found. Page 15 5. Optimization as an Integrated Component Sequence Optimization during the simulation Scenario and Target In a line of two types of products are produced. The arrival process of the products is at random. To achieve an uniform utilization of following resources long partial sequences of single products type should not occur. During the production process the sequence is optimized. Idea In a buffer (modeled by the basic object Sorter) multiple products are collected. For this purpose the entrance and the exit of the buffer are controlled by an Observer method for the value Page 16numMU.

5. Optimization as an Integrated Component Online-Optimization If at the beginning of a simulation not all data are available then multiple sequencings are necessary. This leads to smaller number of items of the sequence compared to the full size of the problem. Evaluation by Rules Unwanted sequences are evaluated by a bad fitness. The evaluation of a sequence is done by one or more criteria and is performed by rules. The result of a rule describes the penalty for the forconsidered local j := 1 sequence: to sequence.ydim - 1 loop if sequence[1, j].name = sequence[1, j+1].name then result := result + 1 end; next; See Chapter 17: C. Heib, S. Nickel in Lothar März, Winfried Krug, Oliver Rose, Gerald Weigert (Hrsg.) Simulation und Optimierung in Produktion und Logistik, Sprin Page 17 5. Optimization as an Integrated Component Result: The Line which succeed the Buffer shows short partial sequences of single products. Page 18

6. Approximation Solutions for Stochastic Models By the model we consider a combination of a sequence and parameter optimization of a stochastic simulation study. It is impossible to solve an optimization problem for a stochastic model. But in practice approximation suboptimal solutions are frequently sufficient. Page 19 6. Approximation Solutions for Stochastic Models The definition of the combined optimization problem. Since we want to minimize the throughput time and the buffer capacity we weight their values. Since there are random components, we perform 5 observations per individual. Page 20

Thank you for your attention! Dr. Peter-Michael Schmidt QA Leader Group Plant Simulation / Germany/ R&D Weissacher Straße 11 70499 Stuttgart Phone: +49 711 13 89 266 Fax: +49 711 13 89 299 Mobile: +49 1577 1593699 E-mail: petermichael.schmidt@siemens.com siemens.com Page 21