Abstract
LabVIEWTM is a visual programming environment for data acquisition, instrument control and industrial automation. This article presents LVAD, a graphically programmed implementation of forward mode Automatic Differentiation for LabVIEW. Our results show that the overhead of using overloaded AD in LabVIEW is sufficiently low as to warrant further investigation and that, within the graphical programming environment, AD may be made reasonably user friendly. We further introduce a prototype LabVIEW Optimization Toolbox which utilizes LVAD’s derivative information. Our toolbox presently contains two main LabVIEW procedures fzero and fmin for calculating roots and minima respectively of an objective function in a single variable. Two algorithms, Newton and Secant, have been implemented in each case. Our optimization package may be applied to graphically coded objective functions, not the simple string definition of functions used by many of the optimizers of LabVIEW’s own optimization package.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
LabVIEWTM is a trademark of National Instruments. This publication is independent of National Instruments, which is not affiliated with the publisher or the author, and does not authorize, sponsor, endorse or otherwise approve this publication.
- 2.
See www.autodiff.org for a list of such tools.
- 3.
- 4.
A further VI (details omitted for brevity) is supplied to set these options within the cluster.
- 5.
Both block diagrams omitted for brevity.
References
Elsheikh, A., Noack, S., Wiechert, W.: Sensitivity analysis of Modelica applications via automatic differentiation. In: 6th International Modelica Conference, vol. 2, pp. 669–675. Bielefeld, Germany (2008)
Elsheikh, A., Wiechert, W.: Automatic sensitivity analysis of DAE-systems generated from equation-based modeling languages. In: C.H. Bischof, H.M. Bücker, P.D. Hovland, U. Naumann, J. Utke (eds.) Advances in Automatic Differentiation, Lecture Notes in Computational Science and Engineering, vol. 64, pp. 235–246. Springer, Berlin (2008). DOI 10.1007/978-3-540-68942-3{ _}21
Forth, S.A.: An efficient overloaded implementation of forward mode automatic differentiation in MATLAB. ACM Transactions on Mathematical Software 32(2), 195–222 (2006). URL http://doi.acm.org/10.1145/1141885.1141888
Griewank, A., Juedes, D., Utke, J.: Algorithm 755: ADOL-C: A package for the automatic differentiation of algorithms written in C/C++. ACM Transactions on Mathematical Software 22(2), 131–167 (1996). URL http://doi.acm.org/10.1145/229473.229474
Griewank, A., Walther, A.: Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation, 2nd edn. No. 105 in Other Titles in Applied Mathematics. SIAM, Philadelphia, PA (2008). URL http://www.ec-securehost.com/SIAM/OT105.html
Gupta, A.K., Agrahari, A.: LVAD package: Implementation of forward mode automatic differentiation in LabVIEW using operator overloading. VI Mantra Technical Paper Writing Contest, National Instuments (2008). URL https://sites.google.com/site/gkrabhishek/projects/publications
LabVIEW 2011 Help (2011). URL http://digital.ni.com/manuals.nsf/websearch/7C3F895E4B50A03D862578D400575C01
Nocedal, J., Wright, S.J.: Numerical Optimization, 2nd edn. Springer, New York (2006)
Pryce, J.D., Reid, J.K.: ADO1, a Fortran 90 code for automatic differentiation. Tech. Rep. RAL-TR-1998-057, Rutherford Appleton Laboratory, Chilton, Didcot, Oxfordshire, OX11 OQX, England (1998). URL ftp://ftp.numerical.rl.ac.uk/pub/reports/prRAL98057.pdf
Acknowledgements
The authors thank National Instruments for permission to include LabVIEW screenshots.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Gupta, A.K., Forth, S.A. (2012). An AD-Enabled Optimization ToolBox in LabVIEWTM . In: Forth, S., Hovland, P., Phipps, E., Utke, J., Walther, A. (eds) Recent Advances in Algorithmic Differentiation. Lecture Notes in Computational Science and Engineering, vol 87. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-30023-3_26
Download citation
DOI: https://doi.org/10.1007/978-3-642-30023-3_26
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-30022-6
Online ISBN: 978-3-642-30023-3
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)