Skip to main content

An AD-Enabled Optimization ToolBox in LabVIEWTM

  • Conference paper
  • First Online:
Recent Advances in Algorithmic Differentiation

Part of the book series: Lecture Notes in Computational Science and Engineering ((LNCSE,volume 87))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 2.

    See www.autodiff.org for a list of such tools.

  3. 3.

    https://modelica.org/

  4. 4.

    A further VI (details omitted for brevity) is supplied to set these options within the cluster.

  5. 5.

    Both block diagrams omitted for brevity.

References

  1. 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)

    Google Scholar 

  2. 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

    Google Scholar 

  3. 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

  4. 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

  5. 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

  6. 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

  7. LabVIEW 2011 Help (2011). URL http://digital.ni.com/manuals.nsf/websearch/7C3F895E4B50A03D862578D400575C01

  8. Nocedal, J., Wright, S.J.: Numerical Optimization, 2nd edn. Springer, New York (2006)

    Google Scholar 

  9. 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

Download references

Acknowledgements

The authors thank National Instruments for permission to include LabVIEW screenshots.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abhishek Kr. Gupta .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics