Polynomial-Time Solvability of the Multi-Dimensional Slope Change Problem
Apoorva Narula, Santanu S. Dey
Abstract
Slope change detection seeks to identify changes in the trends of time-ordered signals. We study the problem of fitting a multidimensional time series by continuous piecewise-linear functions with a shared continuous breakpoint and unrestricted slopes. We consider both the dense setting, in which every dimension may change slope, and the sparse setting, in which at most k dimensions may change slope. Although the resulting optimization problems are nonconvex mixed integer nonlinear programs and may have irrational optimal solutions even for rational data, we prove that all six variants, corresponding to the 1, 2, and ∞ losses in both settings, are exactly solvable in polynomial time. For least-squares loss, we obtain efficient algorithms requiring O(JT) operations in the dense setting and O(J2T J) operations in the sparse setting, where T is the number of time points and J is the number of dimensions. We implement these least-squares algorithms and evaluate them on simulated data and three real-world time series, namely, surface temperatures (ERA5), hand-tracking data from a mixed-reality headset (HoloAssist), and turbofan engine sensor data (NASA C-MAPSS). The dense algorithm solves instances with up to J=105 and T=100, that is, 107 observations, in less than 0.1 seconds on a laptop, while the sparse algorithm solves instances with about 103 dimensions and up to T=240 in under a second. Compared with a mixed-integer nonlinear programming (MINLP) formulation solved by Gurobi, our algorithms are several orders of magnitude faster (approximately 8.9 × 103 to 3.4 × 106 times) on instances where Gurobi terminates within its default optimality tolerance of 0.01\% optimality gap. On larger instances, Gurobi frequently reaches a 10,000-second time limit with substantial optimality gaps.
Create a lesson
Related papers
Mixed-integer dual network problems are solvable in strongly polynomial time
Shared title terminology · Giacomo Zambelli
Two-Stage Mixed-Integer Quadratic Programming in Polynomial Time
Shared title terminology · Alberto Del Pia
From data pencils to image representations of continuous-time LTI systems
Shared title terminology · Timo Reis, Philipp Schmitz, Karl Worthmann
When Speed Changes Where to Build: Optimal Placement of an Optional Fast Connection
Shared title terminology · Heng Chen, Xiaofeng Nie
Optimal Scheduling of Multi-Site AI Data Centers in Day-Ahead Markets
Shared title terminology · Xinyang Zhou, Guido Cavraro
Minimization of free energy in a Poisson--Boltzmann problem
Shared title terminology · Shahid Ali, Klemen Bohinc, Angeles Martinez et al.