Abstract
We consider the problem of fitting a convex piecewise-linear function, with some specified form, to given multi-dimensional data. Except for a few special cases, this problem is hard to solve exactly, so we focus on heuristic methods that find locally optimal fits. The method we describe, which is a variation on the K-means algorithm for clustering, seems to work well in practice, at least on data that can be fit well by a convex function. We focus on the simplest function form, a maximum of a fixed number of affine functions, and then show how the methods extend to a more general form.
Article PDF
Similar content being viewed by others
Avoid common mistakes on your manuscript.
References
Aggarwal A, Booth H, O’Rourke J, Suri S, Yap C (1985) Finding minimal convex nested polygons. In: Proceedings of the symposium on computational geometry. ACM Press, New York, pp 296–304
Bakshi B, Stephanopoulos G (1996) Compression of chemical process data by functional approximation and feature extraction. AIChE J 42(2):477–492
Bellman R, Roth R (1969) Curve fitting by segmented straight lines. Am Stat Assoc J 64:1079–1084
Bemporad A, Borrelli F, Morari M (2002) Model predictive control based on linear programming—the explicit solution. IEEE Trans Autom Control 47(12):1974–1985
Boyd S, Vandenberghe L (2004) Convex optimization. Cambridge University Press, Cambridge
Boyd S, Kim S, Vandenberghe L, Hassibi A (2006) A tutorial on geometric programming. Optim Eng
Chua L, Deng A (1986) Canonical piecewise-linear modeling. IEEE Trans Circuits Syst 33(5):511–525
Dobkin D, Levy S, Thurston W, Wilks A (1990) Contour tracing by piecewise linear approximations. ACM Trans Graph 9(4):389–423
Dunham J (1986) Optimum uniform piecewise linear approximation of planar curves. IEEE Trans Pattern Anal Mach Intell 8(1):67–75
Ferrari-Trecate G, Muselli M (2002) A new learning method for piecewise linear regression. In: Proceedings of the international conference on artificial neural networks. Springer, Berlin, pp 444–449
Gersho A, Gray R (1991) Vector quantization and signal compression. Kluwer Academic, Norwell
Goodrich M (1994) Efficient piecewise-linear function approximation using the uniform metric. In: Proceedings of the symposium on computational geometry. ACM Press, New York, pp 322–331
Gothoskar G, Doboli A, Doboli S (2002) Piecewise-linear modeling of analog circuits based on model extraction from trained neural networks. In: Proceedings of IEEE international workshop on behavioral modeling and simulation, pp 41–46
Hakimi S, Schmeichel E (1991) Fitting polygonal functions to a set of points in the plane. CVGIP: Graph Models Image Process 53(2):132–136
Horst J, Beichel I (1997) A simple algorithm for efficient piecewise-linear approximation of space curves. In: Proceedings of international conference on image processing. IEEE Computer Society, Los Alamitos
Imai H, Iri M (1986) An optimal algorithm for approximating a piecewise linear function. J Inf Process 9(3):159–162
Julian P, Jordan M, Desages A (1998) Canonical piecewise-linear approximation of smooth functions. IEEE Trans Circuits Syst 45(5):567–571
Kahlert C, Chua L (1990) A generalized canonical piecewise-linear representation. IEEE Trans Circuits Syst 37(3):373–383
Kang S, Chua L (1978) A global representation of multidimensional piecewise-linear functions with linear partitions. IEEE Trans Circuits Syst 25:938–940
Kanzow C, Petra S (2004) On a semismooth least squares formulation of complementarity. Optim Methods Softw 19(5):507–525
Kim J, Lee J, Vandenberghe L, Yang C (2004) Techniques for improving the accuracy of geometric-programming based analog circuit design optimization. In: Proceedings of the IEEE international conference on computer aided design, pp 863–870
Mangasarian O, Rosen J, Thompson M (2005) Global minimization via piecewise-linear underestimation. J Glob Optim 32
Mitchell J, Suri S (1992) Separation and approximation of polyhedral objects. In: Proceedings of the ACM-SIAM symposium on discrete algorithms. Society for industrial and applied mathematics, Philadelphia, pp 296–306
Phillips T, Rosenfeld A (1988) An ISODATA algorithm for straight line fitting. Pattern Recognit 7(5):291–297
Pittman J, Murthy C (2000) Fitting optimal piecewise linear functions using genetic algorithms. IEEE Trans Pattern Anal Mach Intel 22(7):701–718
Rives G, Dhome M, La Preste J, Richetin M (1985) Detection of patterns in images from piecewise linear contours. Pattern Recognit Lett 3:99–104
Storace M, De Feo O (2002) Piecewise-linear approximation of nonlinear dynamical systems
Torrisi F, Bemporad A (2004) HYSDEL—a tool for generating computational hybrid models for analysis and synthesis problems. IEEE Trans Control Syst Technol 12(2):235–249
Vandenberghe L, de Moor B, Vandewalle J (1989) The generalized linear complementarity problem applied to the complete analysis of resistive piecewise-linear circuits. IEEE Trans Circuits Syst 36(11):1382–1391
Venkateswar V, Chellappa R (1992) Extraction of straight lines in aerial images. IEEE Trans Pattern Anal Mach Intell 14(11):1111–1114
Wang D, Huang N, Chao H, Lee R (1993) Plane sweep algorithms for the polygonal approximation problems with applications. In: Proceedings of the international symposium on algorithms and computation. Springer, London, pp 515–522
Yin P (1998) Algorithms for straight line fitting using k-means. Pattern Recognit Lett 19(1):31–41
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Magnani, A., Boyd, S.P. Convex piecewise-linear fitting. Optim Eng 10, 1–17 (2009). https://doi.org/10.1007/s11081-008-9045-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11081-008-9045-3