PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 2, 2026Journal of Global Optimization0 citationsOpen Access

Optimal Piecewise Linear Approximations for Sigmoid, Tanh, Probability Density and Cumulative Distribution Functions: Tabular Form and R Package pwlapprox2d

View Full Paper
JWJohn Alasdair WarwickerSRSteffen Rebennack

Key Points

  • The aim is to provide optimal piecewise linear approximations for various functions to improve accuracy in modeling.
  • Developed tabular data for PWL approximations of sigmoid, tanh, and distribution functions.
  • Minimized maximum absolute differences between PWL and original functions.
  • Identified optimal breakpoint locations for varying numbers of breakpoints.
  • Achieved up to 95% improvement over uniform breakpoint locations in maximum absolute difference.
  • Average improvement of 84% across six different functions.
  • Facilitated the use of mixed-integer linear programming techniques for complex problem-solving.

Abstract

Abstract We present information in tabular form about optimal piecewise linear (PWL) approximations of the sigmoid and tanh activation functions as used in neural networks, as well as the probability density and cumulative distribution functions of the Normal and log-Normal distributions. The presented approximations minimise the maximum absolute difference between the PWL function and the continuous function being modelled; we also provide information on optimal over- and underestimators. We provide information on the optimal breakpoint locations for different numbers of breakpoints in a series of tables, as well as the accuracy provided by these approximations. This allows practitioners to utilise the PWL approximations whenever needed; for example, to enable the use of mixed-integer linear programming techniques to solve problems where these functions may appear, or to approximate integrals. The provided optimal breakpoint locations lead to an improvement over a uniform breakpoint location of the maximum absolute difference of up to 95% and an average of 84% among the six functions. This information is available online at https://doi.org/10.5281/zenodo.16362215 and can be recreated using the R package pwlapprox2d 1.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Warwicker et al. (2026) studied this question.

synapsesocial.com/papers/6980fd60c1c9540dea80f19bhttps://doi.org/10.1007/s10898-026-01588-8
Ask AI
Helpful
Bookmark
Share
View Full Paper