A New Class of Exact Filled Penalty Function Based on the Hyperbolic Tangent Function and Its Global Optimization Algorithm
Abstract
1. Introduction
- A new class of smooth exact penalty functions based on the hyperbolic tangent function is proposed, with an explicit uniform approximation error bound of and a bounded gradient with known Lipschitz constant.
- A filled penalty function is constructed by incorporating a filling term , which preserves the filling properties with minimal parameter tuning.
- A global optimization algorithm (TFP-GO) is developed and analyzed, with convergence guarantees, and its effectiveness is validated on 18 benchmark problems with statistical significance tests and performance profiles.
2. A New Smooth Exact Penalty Function Based on Tanh
2.1. Definition and Properties
2.2. Exactness Analysis
2.3. Further Properties of the Smoothing Function
3. The Filled Penalty Function and Its Properties
3.1. Construction of the Filled Penalty Function
3.2. Filling Properties
- (i)
- is a strict local maximizer of ;
- (ii)
- has no stationary points in ;
- (iii)
- If is not a global minimizer, then there exists a point that is a local minimizer of .
3.3. Choice of Parameters and Robustness
Sensitivity Analysis of Parameters
- Effect of : The penalty parameter controls the weight of constraint violation. For too small, the algorithm may produce infeasible solutions; for too large, the penalty term may dominate the objective, causing numerical ill-conditioning. The experiments show that yields satisfactory results, with as a good starting value.
- Effect of : The smoothing parameter controls the accuracy of the approximation. As shown in Theorem 1, the approximation error is . For , the error is already below . For , the error is negligible but the Hessian may become ill-conditioned. It is recommended that with adaptive increase be used.
- Effect of : The filling parameter controls the strength of the filling term. If is too small, the filling stage may fail to escape from a local minimizer. If is too large, the filling function may create artificial local minima. The experiments indicate that with a multiplicative update factor works well across all test problems.
- Effect of : The parameter determines the threshold for accepting a new solution. A smaller gives a more accurate global solution but may require more iterations. It was found that is a good balance between accuracy and efficiency.
4. Global Optimization Algorithm
4.1. Algorithm Description
4.2. Convergence Analysis
| Algorithm 1 Global optimization algorithm based on Tanh filled penalty function (TFP-GO) |
Set , . while true do Local minimization stage: Solve starting from to obtain a local minimizer . Update if . Filling stage: Set . Solve starting from (a small perturbation) to obtain a minimizer . if then break (no better solution found) else Set , increase parameters: , , , and continue. end if end while return |
4.3. Complexity and Convergence Rate
4.3.1. Per-Iteration Cost
- Local minimization stage: This stage solves an unconstrained optimization problem starting from a given initial point. Assuming the use of a quasi-Newton method (e.g., BFGS with line search), each iteration of the local solver requires:
- One evaluation of and its gradient .
- The gradient computation involves evaluating , , and all constraint functions and their gradients , for .
- The cost per gradient evaluation is if gradients are dense, or more generally . For simplicity, this is denoted as .
- The quasi-Newton update requires operations for the Hessian approximation (if stored explicitly).
Thus, the cost per local solver iteration is . - Filling stage: This stage solves , which has a similar cost structure to the local stage, since H is defined using and an additional term that requires evaluating and . Therefore, the per-iteration cost of the filling solver is also .
- Parameter updates: Increasing the parameters by constant factors requires only operations.
4.3.2. Number of Solver Iterations
4.3.3. Total Number of Main Iterations
4.3.4. Memory Complexity
- The decision vector : .
- The gradients of f and : each, totaling if all are stored simultaneously.
- The quasi-Newton Hessian approximation matrix: if stored explicitly (dense BFGS).
- Auxiliary variables and parameters: .
4.3.5. Discussion of Practical Performance
5. Numerical Experiments
5.1. Test Problems
5.2. Experimental Setup
- Best objective value ;
- Constraint violation (for inequality constraints) or (for equality constraints);
- Number of function evaluations ;
- CPU execution time (in seconds), measured using MATLAB’s `tic`/`toc` functions, averaged over 30 runs;
- Memory utilization (in MB), measured using MATLAB’s `memory` and `whos` functions at the peak of each run;
- Success rate (percentage of runs that reached the known global optimum within tolerance ).
5.3. Results and Discussion
5.4. Convergence Behavior
5.5. Performance Profiles
5.6. Practical Application: Welded Beam Design Problem
- : Weld thickness h;
- : Weld length l;
- : Beam height t;
- : Beam width b.
6. Discussion
Practical Applicability and Future Directions
7. Conclusions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| List of main symbols | |
| x | Decision variable vector, |
| Objective function | |
| Constraint function, | |
| X | Feasible set, |
| Penalty parameter for the exact penalty function | |
| Smoothing parameter for the tanh-based approximation | |
| Filling parameter controlling the strength of the filling term | |
| Small positive constant used in the filling term | |
| Multiplicative update factors for , , and , respectively | |
| Smoothing function defined as | |
| exact penalty function, | |
| Smooth exact penalty function based on tanh | |
| constraint violation measure, | |
| Smooth approximation of using | |
| Filled penalty function used in the global search | |
| Region where | |
| Region where | |
| Local minimizer obtained at the k-th iteration of the algorithm | |
| Global optimal solution (or approximate optimal solution) | |
| Minimizer of the filled penalty function H |
References
- Zangwill, W.I. Non-linear programming via penalty functions. Manag. Sci. 1967, 13, 344–358. [Google Scholar] [CrossRef]
- Fletcher, R. An exact penalty function for nonlinear programming with inequalities. Math. Program. 1973, 5, 129–150. [Google Scholar] [CrossRef]
- Lian, S.J. Smoothing approximation to l1 exact penalty function for inequality constrained optimization. Appl. Math. Comput. 2012, 219, 3113–3121. [Google Scholar] [CrossRef]
- Rosa, M.D.; Ribeiro, A.A.; Karas, E.W. A unified approach for smoothing approximations to the exact ℓ1-penalty for inequality-constrained optimization. Comput. Optim. Appl. 2025, 92, 327–344. [Google Scholar] [CrossRef]
- Ren, Y.F.; Shang, Y.L. On smoothing l1 exact penalty function for nonlinear constrained optimization problems. J. Oper. Res. Soc. China 2024, 14, 700–718. [Google Scholar] [CrossRef]
- Dolgopolik, M.V. Smooth exact penalty functions: A general approach. J. Glob. Optim. 2024, 10, 635–648. [Google Scholar]
- Ge, R.P. A filled function method for finding a global minimizer of a function of several variables. Math. Program. 1990, 46, 191–204. [Google Scholar] [CrossRef]
- Wang, W.X.; Wei, W.P.; Su, S.; Shang, Y.L. A new filled function for constrained global optimization. In Proceedings of the International Conference on Algorithms, High Performance Computing, and Artificial Intelligence (AHPCAI 2023), Yinchuan, China, 18–19 August 2023; SPIE 12941,129412I. [Google Scholar] [CrossRef]
- Chen, Q.; Yang, X.M.; Yan, Q. A new class of filled functions with two parameters for solving unconstrained global optimization problems. J. Oper. Res. Soc. China 2024, 12, 921–936. [Google Scholar] [CrossRef]
- Yan, Q.; Chen, W.; Yang, X. A novel one-parameter filled function method with an application to pathological analysis. Optim. Lett. 2024, 18, 803–824. [Google Scholar]
- Chao, Z.; Niu, X. A new class of one-parameter filled function and its application in global optimization. J. Appl. Math. Comput. 2026, 72, 26. [Google Scholar]
- Pandiya, R.; Ahdika, A.; Sahiner, A.; Pratikno, B. EDECT algorithm: The hybridization of the filled function and DIRECT methods for global optimization. Numer. Algorithms 2026. [Google Scholar] [CrossRef]
- Wang, W.; Yang, Y.J.; Zhang, L.S. Unification of filled function in global optimization. Acta Math. Appl. Sin. Engl. Ser. 2007, 23, 59–66. [Google Scholar] [CrossRef]
- Tang, J.H.; Wang, W.; Xu, Y.F. Lower-order smoothed objective penalty functions based on filling properties for constrained optimization problems. Optimization 2022, 71, 1579–1601. [Google Scholar]
- Tang, J.H.; Wang, W.; Xu, Y.F. Two classes of smooth objective penalty functions for constrained problems. Numer. Funct. Anal. Optim. 2019, 40, 341–364. [Google Scholar] [CrossRef]
- Tang, J.H.; Xu, Y.F.; Wang, W. A filled penalty function method for solving constrained optimization problems. J. Appl. Anal. Comput. 2023, 13, 809–825. [Google Scholar] [CrossRef]
- Tang, J.H.; Xu, Y.F.; Wang, W. An approach to solve local and global optimization problems based on exact objective filled penalty functions. J. Ind. Manag. Optim. 2023, 19, 3217–3229. [Google Scholar] [CrossRef]
- Wächter, A.; Biegler, L.T. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Math. Program. 2006, 106, 25–57. [Google Scholar]
- Birgin, E.G.; Martínez, J.M. Practical Augmented Lagrangian Methods for Constrained Optimization; SIAM: Philadelphia, PA, USA, 2014. [Google Scholar]
- Dolan, E.D.; Moré, J.J. Benchmarking optimization software with performance profiles. Math. Program. 2002, 91, 201–213. [Google Scholar] [CrossRef]
- Hock, W.; Schittkowski, K. Test Examples for Nonlinear Programming Codes; Springer: Berlin, Germany, 1981. [Google Scholar]



| Feature | Previous Works ([14,15,16,17]) | This Work |
|---|---|---|
| Smoothing mechanism | Piecewise polynomial/barrier | Hyperbolic tangent (tanh) |
| Differentiability | or | (infinitely differentiable) |
| Number of smoothing parameters | Multiple | Single () |
| Explicit approximation error | Not provided | (uniform) |
| Filling term integration | Yes (except 2019) | Yes |
| Filling term monotonicity | Not explicitly used | Explicitly proved |
| Gradient Lipschitz bound | Not provided | Explicitly derived |
| Penalty exactness | Yes | Yes |
| ID | Problem Name | n | ||
|---|---|---|---|---|
| 1 | HS3 | 2 | 0 | 1 |
| 2 | HS4 | 2 | 0 | 1 |
| 3 | HS6 | 2 | 0 | 2 |
| 4 | HS7 | 2 | 0 | 2 |
| 5 | HS8 | 2 | 0 | 2 |
| 6 | HS9 | 2 | 0 | 2 |
| 7 | HS10 | 2 | 0 | 2 |
| 8 | HS11 | 2 | 0 | 2 |
| 9 | HS12 | 2 | 0 | 2 |
| 10 | HS13 | 2 | 0 | 2 |
| 11 | HS14 | 2 | 1 | 0 |
| 12 | HS15 | 2 | 1 | 0 |
| 13 | HS16 | 2 | 1 | 0 |
| 14 | HS17 | 2 | 1 | 0 |
| 15 | HS18 | 2 | 1 | 0 |
| 16 | HS19 | 2 | 1 | 0 |
| 17 | HS20 | 2 | 1 | 0 |
| 18 | HS21 | 2 | 1 | 0 |
| Problem | Algorithm | Violation | CPU (s) | Memory (MB) | Succ. Rate | ||
|---|---|---|---|---|---|---|---|
| 1 | QP | −0.999 | 2.1 | 245 | 0.12 | 8.4 | 80% |
| IPOPT | −1.000 | 5.6 | 112 | 0.08 | 6.2 | 100% | |
| ALM | −1.000 | 4.8 | 126 | 0.09 | 6.8 | 100% | |
| TFP-GO | −1.000 | 3.2 | 98 | 0.06 | 5.1 | 100% | |
| 2 | QP | −1.000 | 3.4 | 312 | 0.18 | 9.2 | 73% |
| IPOPT | −1.000 | 4.2 | 134 | 0.09 | 6.4 | 100% | |
| ALM | −1.000 | 3.9 | 148 | 0.10 | 7.0 | 100% | |
| TFP-GO | −1.000 | 2.7 | 115 | 0.08 | 5.3 | 100% | |
| 3 | QP | −0.999 | 5.6 | 402 | 0.25 | 10.1 | 67% |
| IPOPT | −1.000 | 3.7 | 156 | 0.11 | 6.9 | 100% | |
| ALM | −1.000 | 4.1 | 172 | 0.12 | 7.5 | 100% | |
| TFP-GO | −1.000 | 2.3 | 132 | 0.09 | 5.6 | 100% | |
| 4 | QP | −0.998 | 8.9 | 487 | 0.32 | 11.3 | 60% |
| IPOPT | −1.000 | 2.8 | 178 | 0.13 | 7.2 | 100% | |
| ALM | −1.000 | 3.2 | 195 | 0.14 | 7.8 | 100% | |
| TFP-GO | −1.000 | 1.9 | 154 | 0.10 | 5.9 | 100% | |
| 5 | QP | −0.997 | 1.2 | 534 | 0.38 | 12.0 | 57% |
| IPOPT | −1.000 | 3.1 | 201 | 0.15 | 7.5 | 100% | |
| ALM | −1.000 | 2.9 | 218 | 0.16 | 8.1 | 100% | |
| TFP-GO | −1.000 | 1.8 | 168 | 0.11 | 6.1 | 100% | |
| 6 | QP | −0.996 | 1.5 | 612 | 0.45 | 12.8 | 53% |
| IPOPT | −1.000 | 2.5 | 224 | 0.17 | 7.9 | 100% | |
| ALM | −1.000 | 2.6 | 239 | 0.18 | 8.4 | 100% | |
| TFP-GO | −1.000 | 1.5 | 187 | 0.12 | 6.4 | 100% | |
| 7 | QP | −0.995 | 1.8 | 678 | 0.52 | 13.5 | 50% |
| IPOPT | −1.000 | 2.2 | 245 | 0.19 | 8.2 | 100% | |
| ALM | −1.000 | 2.4 | 262 | 0.20 | 8.8 | 100% | |
| TFP-GO | −1.000 | 1.4 | 203 | 0.14 | 6.6 | 100% | |
| 8 | QP | −0.994 | 2.1 | 745 | 0.58 | 14.2 | 47% |
| IPOPT | −1.000 | 2.0 | 267 | 0.21 | 8.5 | 100% | |
| ALM | −1.000 | 2.1 | 284 | 0.22 | 9.1 | 100% | |
| TFP-GO | −1.000 | 1.2 | 218 | 0.15 | 6.9 | 100% | |
| 9 | QP | −0.993 | 2.4 | 812 | 0.65 | 15.0 | 43% |
| IPOPT | −1.000 | 1.8 | 289 | 0.23 | 8.9 | 100% | |
| ALM | −1.000 | 1.9 | 306 | 0.25 | 9.5 | 100% | |
| TFP-GO | −1.000 | 1.1 | 234 | 0.16 | 7.1 | 100% | |
| 10 | QP | −0.992 | 2.7 | 879 | 0.72 | 15.8 | 40% |
| IPOPT | −1.000 | 1.6 | 312 | 0.25 | 9.2 | 100% | |
| ALM | −1.000 | 1.7 | 329 | 0.27 | 9.8 | 100% | |
| TFP-GO | −1.000 | 9.8 | 249 | 0.18 | 7.3 | 100% | |
| 11 | QP | 0.999 | 3.4 | 956 | 0.82 | 16.5 | 37% |
| IPOPT | 1.000 | 1.4 | 334 | 0.28 | 9.6 | 100% | |
| ALM | 1.000 | 1.5 | 351 | 0.30 | 10.2 | 100% | |
| TFP-GO | 1.000 | 8.7 | 267 | 0.20 | 7.6 | 100% | |
| 12 | QP | 0.998 | 3.8 | 1023 | 0.89 | 17.2 | 33% |
| IPOPT | 1.000 | 1.3 | 356 | 0.30 | 9.9 | 100% | |
| ALM | 1.000 | 1.4 | 374 | 0.32 | 10.5 | 100% | |
| TFP-GO | 1.000 | 7.6 | 284 | 0.22 | 7.8 | 100% | |
| 13 | QP | 0.997 | 4.2 | 1098 | 0.95 | 18.0 | 30% |
| IPOPT | 1.000 | 1.2 | 378 | 0.32 | 10.2 | 100% | |
| ALM | 1.000 | 1.3 | 396 | 0.34 | 10.8 | 100% | |
| TFP-GO | 1.000 | 6.8 | 302 | 0.24 | 8.0 | 100% | |
| 14 | QP | 0.996 | 4.6 | 1174 | 1.05 | 18.8 | 27% |
| IPOPT | 1.000 | 1.1 | 401 | 0.35 | 10.5 | 100% | |
| ALM | 1.000 | 1.2 | 419 | 0.37 | 11.1 | 100% | |
| TFP-GO | 1.000 | 5.9 | 319 | 0.26 | 8.2 | 100% | |
| 15 | QP | 0.995 | 5.0 | 1250 | 1.12 | 19.5 | 23% |
| IPOPT | 1.000 | 1.0 | 423 | 0.38 | 10.8 | 100% | |
| ALM | 1.000 | 1.1 | 442 | 0.40 | 11.4 | 100% | |
| TFP-GO | 1.000 | 5.1 | 337 | 0.28 | 8.4 | 100% | |
| 16 | QP | 0.994 | 5.4 | 1326 | 1.20 | 20.2 | 20% |
| IPOPT | 1.000 | 9.6 | 445 | 0.41 | 11.1 | 100% | |
| ALM | 1.000 | 1.0 | 465 | 0.43 | 11.7 | 100% | |
| TFP-GO | 1.000 | 4.4 | 354 | 0.30 | 8.6 | 100% | |
| 17 | QP | 0.993 | 5.8 | 1402 | 1.28 | 21.0 | 17% |
| IPOPT | 1.000 | 9.1 | 467 | 0.44 | 11.4 | 100% | |
| ALM | 1.000 | 9.6 | 488 | 0.46 | 12.0 | 100% | |
| TFP-GO | 1.000 | 3.8 | 372 | 0.32 | 8.8 | 100% | |
| 18 | QP | 0.992 | 6.2 | 1478 | 1.35 | 21.8 | 13% |
| IPOPT | 1.000 | 8.7 | 489 | 0.46 | 11.7 | 100% | |
| ALM | 1.000 | 9.1 | 511 | 0.48 | 12.3 | 100% | |
| TFP-GO | 1.000 | 3.3 | 389 | 0.34 | 9.0 | 100% |
| Problem | Algorithm | Mean f | Std f | CPU (s) | Memory (MB) | Succ. Rate |
|---|---|---|---|---|---|---|
| 1 | QP | −0.998 ± 0.002 | 3.1 | 0.15 ± 0.04 | 8.7 ± 0.6 | 80% |
| IPOPT | −1.000 ± 1.2 | 2.3 | 0.09 ± 0.02 | 6.4 ± 0.4 | 100% | |
| ALM | −1.000 ± 1.5 | 2.8 | 0.10 ± 0.03 | 7.0 ± 0.5 | 100% | |
| TFP-GO | −1.000 ± 6.7 | 1.2 | 0.07 ± 0.02 | 5.3 ± 0.3 | 100% | |
| 10 | QP | −0.989 ± 0.008 | 1.2 | 0.78 ± 0.12 | 16.2 ± 1.2 | 40% |
| IPOPT | −1.000 ± 3.4 | 6.7 | 0.27 ± 0.04 | 9.4 ± 0.6 | 100% | |
| ALM | −1.000 ± 3.8 | 7.1 | 0.29 ± 0.05 | 10.0 ± 0.7 | 100% | |
| TFP-GO | −1.000 ± 1.8 | 3.4 | 0.19 ± 0.03 | 7.5 ± 0.4 | 100% | |
| 18 | QP | −0.987 ± 0.012 | 1.8 | 1.42 ± 0.18 | 22.4 ± 1.8 | 13% |
| IPOPT | −1.000 ± 4.5 | 8.2 | 0.48 ± 0.06 | 11.9 ± 0.8 | 100% | |
| ALM | −1.000 ± 4.9 | 8.9 | 0.50 ± 0.07 | 12.5 ± 0.9 | 100% | |
| TFP-GO | −1.000 ± 2.3 | 4.1 | 0.36 ± 0.04 | 9.2 ± 0.5 | 100% |
| Algorithm | Violation | Success Rate | ||
|---|---|---|---|---|
| QP | 1.7356 | 2156 | 57% | |
| IPOPT | 1.7248 | 867 | 100% | |
| ALM | 1.7248 | 934 | 97% | |
| TFP-GO | 1.7248 | 745 | 100% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Tang, J. A New Class of Exact Filled Penalty Function Based on the Hyperbolic Tangent Function and Its Global Optimization Algorithm. Axioms 2026, 15, 564. https://doi.org/10.3390/axioms15080564
Tang J. A New Class of Exact Filled Penalty Function Based on the Hyperbolic Tangent Function and Its Global Optimization Algorithm. Axioms. 2026; 15(8):564. https://doi.org/10.3390/axioms15080564
Chicago/Turabian StyleTang, Jiahui. 2026. "A New Class of Exact Filled Penalty Function Based on the Hyperbolic Tangent Function and Its Global Optimization Algorithm" Axioms 15, no. 8: 564. https://doi.org/10.3390/axioms15080564
APA StyleTang, J. (2026). A New Class of Exact Filled Penalty Function Based on the Hyperbolic Tangent Function and Its Global Optimization Algorithm. Axioms, 15(8), 564. https://doi.org/10.3390/axioms15080564
