Implementation of sparse forward mode automatic differentiation with application to electromagnetic shape optimization
Toivanen, J., & Mäkinen, R. (2011). Implementation of sparse forward mode automatic differentiation with application to electromagnetic shape optimization. Optimization Methods and Software, 26 (4-5), 601-616. doi:10.1080/10556781003642305
Julkaistu sarjassaOptimization Methods and Software
© Taylor & Francis. This is an electronic final draft version of an article whose final and defenitive form is published in the print edition of Optimization Methods and Software which is available online at: http://www.tandfonline.com.
In this paper, we present the details of a simple lightweight implementation of the so-called sparse forward mode automatic differentiation (AD) in the C++programming language. Our implementation and the well-known ADOL-C tool (which utilizes taping and compression techniques) are used to compute Jacobian matrices of two nonlinear systems of equations from the MINPACK-2 test problem collection. Timings of the computations are presented and discussed. Moreover, we perform the shape sensitivity analysis of a time-harmonic Maxwell equation solver using our implementation and the tapeless mode of ADOL-C, which implements the dense forward mode AD. It is shown that the use of the sparse forward mode can save computation time even though the total number of independent variables in this example is quite small. Finally, numerical solution of an electromagnetic shape optimization problem is presented.