Genetic algorithms and SIS multi-turn injection

Slides:



Advertisements
Similar presentations
ZEIT4700 – S1, 2014 Mathematical Modeling and Optimization School of Engineering and Information Technology.
Advertisements

CS6800 Advanced Theory of Computation
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Introduction to Genetic Algorithms Yonatan Shichel.
Genetic Algorithms GAs are one of the most powerful and applicable search methods available GA originally developed by John Holland (1975) Inspired by.
Torcs Simulator Presented by Galina Volkinshtein and Evgenia Dubrovsky.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Design of Curves and Surfaces by Multi Objective Optimization Rony Goldenthal Michel Bercovier School of Computer Science and Engineering The Hebrew University.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Genetic Algorithms: A Tutorial
Genetic Algorithm.
Example II: Linear truss structure
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Genetic algorithms Prof Kang Li
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic algorithms Charles Darwin "A man who dares to waste an hour of life has not discovered the value of life"
Optimization of the ESRF upgrade lattice lifetime and dynamic aperture using genetic algorithms Nicola Carmignani 11/03/2015.
The Generational Control Model This is the control model that is traditionally used by GP systems. There are a distinct number of generations performed.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Exact and heuristics algorithms
1 Genetic Algorithms and Ant Colony Optimisation.
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
2/29/20121 Optimizing LCLS2 taper profile with genetic algorithms: preliminary results X. Huang, J. Wu, T. Raubenhaimer, Y. Jiao, S. Spampinati, A. Mandlekar,
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
Solving Function Optimization Problems with Genetic Algorithms September 26, 2001 Cho, Dong-Yeon , Tel:
Innovative and Unconventional Approach Toward Analytical Cadastre – based on Genetic Algorithms Anna Shnaidman Mapping and Geo-Information Engineering.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Neural and Evolutionary Computing - Lecture 9 1 Evolutionary Multiobjective Optimization  Particularities of multiobjective optimization  Multiobjective.
1 Autonomic Computer Systems Evolutionary Computation Pascal Paysan.
Genetic algorithms: A Stochastic Approach for Improving the Current Cadastre Accuracies Anna Shnaidman Uri Shoshani Yerach Doytsher Mapping and Geo-Information.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms. Solution Search in Problem Space.
Application of Differential Evolution Algorithm in Future Circular Colliders Yuan IHEP, Beijing Demin Zhou, KEK, Ibaraki, Japan.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
ZEIT4700 – S1, 2016 Mathematical Modeling and Optimization School of Engineering and Information Technology.
Power Magnetic Devices: A Multi-Objective Design Approach
Introduction to Genetic Algorithms
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Interface model for SIS18 and UNILAC
Sabrina Appel, GSI, Beam physics Space charge workshop 2013, CERN
Multi-Objective Optimization
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Traveling Salesman Problem by Genetic Algorithm
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Beyond Classical Search
Population Based Metaheuristics
Population Methods.
Presentation transcript:

Genetic algorithms and SIS multi-turn injection Sabrina Appel, GSI

Numerical optimization Outline Numerical optimization Single and multi-objective Genetic algorithms (GA) Cycle and GA operators GA implementation Multi-turn injection into SIS Improvement of MTI quality due to GA (first results) Summery and Outlook

Numerical optimization Optimization problem for single objective: f(x) evaluated by simulation code (or measured in the machine) with only few iteration steps Scan Gradient Gradient-based methods (traditional): May get stuck in a local minimum/maximum (and never come out) Require local gradients Work if initial guess is already close to the optimum Parameter scans (traditional): Only applicable for 1D or 2D parameter spaces Accelerator problems: Multi-dimensional, nonlinear, multi-objective, contradicting optimums Several ‘optimum’ solutions (choice of the designer is required)

Numerical optimization General: The optimization problem is multi-objective (several criterions to optimize) Imagined best solution optimal for Solution space Pareto front The criterions can be contradicting Improving one criterion means worsening others Find a set of optimal solutions instead of a single solution (Pareto front)

Genetic algorithms Inspired by natural evolution Search for solutions using techniques such as mutation, selection, and crossover Genetic algorithms are smart parameter scans They are very flexible and can solve multi-objective problems (wide range of different algorithms) Can be combined with gradient-based methods (for refinement) Darwin Finches J. Gould, Voyage of the Beagle Individual in the population One point in the search area Fitness Measure how good an individual is adapted to the optimization problem (fulfills constraints) Selection The survival of the fittest leads to an optimization of the properties Variation Recombination and mutation generated variety over the individuals (n – parameters)

Genetic algorithms: Cycle Parents Properties determined by genes Reproduction Genes are copied, combined, and mutated Offspring New properties due to new genes Evaluate fitness (n-times) Selection Choice of new parents Initialize population Evaluate fitness End condition

Genetic operators Crossover Discovering promising areas (Exploration) Parent 1 Parent 1 x x Parent 2 Parent 2 Child 1 Child 1 Child 2 Child 2 1 (n) – point crossover uniform crossover Mutation Optimizing within a promising area (Exploitation) Parent Alter each gene with probability p=1/l At least one bit on average should mutate Child -> To find the optimum a combination of both is needed

Genetic operators A50% B37.5% C12.5% Selection (single-objective optimization) Choose the most promising individual to created the next generation Prevent the population to be dominated by a single individual (local optimum) by allowing individuals with poor fitness to take part at the creation process Techniques are fitness proportional selection, ranking selection, tournament selection, … Roulette wheel technique A50% B37.5% C12.5% Assign to each individual a part of the roulette wheel (The size is proportional to its fitness) Spin the wheel n times to select n individuals

Genetic operators P C Selection (multi-objective optimization) D C Non-dominated selection (Selection of solution near to the Pareto front) A dominates B+C but not D D dominates C but not A+B B + C do not dominate A + D are non-dominated (near Pareto front) NSGA-II (Non-dominated sorting genetic algorithm) P C Non-dominated ranking Rejected Crowding distance sorting Pn Pn+1 The next generation is selected from parents and children The solutions are ranked according to their non-domination level and combined to sets The best non-dominated solutions are selected directly for the new generation Solutions which violate criteria or are of low rank are rejected

Genetic algorithm implementation Parallel algorithms Implementation of genetic operators and algorithms Use MPI to establish a master/slave model The master performs genetic operations Generate population, selection, crossover, mutation The slaves evaluate fitness function for each individual Accelerator simulation code “Bottleneck” -> Will be called for each individual at each generation It sounds like a lot of work Not, if you use available genetic algorithm packages for Python, Java, Matlab, … And decouple the genetic algorithm from accelerator simulation code Genetic algorithm MPI/Server manger Code pyORBIT, Elegant n * m-times

Multi-turn injection into SIS Layout of injection region Anode Cathode 300 kV SIS electrostatic injection septum The linac beam is injected in horizontal phase space until the machine acceptance is reached MTI has to respect Liouville’s theorem: Injected beams only in free space Loss (at septum + acceptance) should be as low as possible due to activation, damage, vacuum Altitude Previous study indicated analytically description for the model variables, but the model is underrepresented For MTI simulations we use pyORBIT (A. Shishlo, S. Cousineau, J. Holmes et al.) https://code.google.com/p/py-orbit/ Python + C++ + MPI Teapot tracking 2D/3D space charge models

Multi-turn injection into SIS: Movie Loss at septum is the major loss source Loss of incoming beam Later loss of stored beam Second loss source is the acceptance The analytically description characterize: The position of incoming beam Input mismatch And the depending of one variable on other variables But the model is underrepresented A few variables can be choose freely from a value range

Multi-turn injection into SIS Multi-objectives: stacked current (maximize) beam loss (minimize) output 1-2 m Constraints: Position of septum Machine acceptance Closed orbit (bumper kick) Model in simulation code (fitness function) t Parameters: Position of incoming beam at septum Initial bump amplitude and its decreasing Injected turns Horizontal tune Horizontal emittance Current from linac Altitude

Improvement of the SIS MTI quality ε = 5 mm mrad Single object: min (loss) Fixed parameters: Variables: (beam) (orbit bump) Genetic algorithms is better than the traditional approach: 1 turns 12.9 or 13.8 The parameter set of the best individual are in the same area as the analytically description are suggested Due to an other combination of the freely selectable variables give the GA are more ideally solution than analytically description

Improvement of the SIS MTI quality Multi-object: max(intensity) ε = 5 mm mrad Pareto front and min (loss) Fixed parameters: Variables: (beam) (orbit bump) + (inj. time) Genetic algorithms is better than the traditional approach A more better Pareto front have been found Loss could minimized and intensity maximized

Other examples of applications of GA Dynamic aperture maximization A. Hofler et al., Innovative applications of genetic algorithms to problems in accelerator physics Phys. Rev. ST AB, 16 (2013) Magnet design optimization S. Ramberger, S. Russenschuck, Genetic algorithms for the optimal design of superconducting accelerator magnets EPAC (1998) Magnet sorting in a storage ring. Chen, J., Wang, L., Li, W.-M., & Gao, W.-W. ,Optimization of magnet sorting in a storage ring using genetic algorithms, Chinese Physics C (2013) Linac settings for high intensity Pang, X., & Rybarcyk, L. J., Multi-objective particle swarm and genetic algorithm for the optimization of the LANSCE linac operation. NIMA 741 (2013) Real machine based optimization in a storage ring L.Yang, et al. , Global optimization of an accelerator lattice using multiobjective genetic algorithms, NIMA, 609 (2009)

Summary and Outlook Summary Outlook Numerical optimization Genetic algorithms (GA) Improvement of MTI quality due to GA (first results) Various applications for accelerators Outlook Include in GA optimization more parameters like tune, current Use of other algorithms like particle swarm optimization Improvement of MTI simulation model due to measurements (analysis is in progress)

Thank you for your attention