To realize adaptive operation planning with MILP unit commitment, piecewise-linear approximations of the functions that describe the operating behavior of devices in the energy system have to be computed. We present an algorithm to compute a piecewise-linear approximation of a multi-variate non-linear function. The algorithm splits the domain into two regions and approximates each region with a set of hyperplanes that can be translated to a convex set of constraints in MILP. The main advantage of this “piecewise-convex approximation” (PwCA) compared to more general piecewise-linear approximation with simplices is that the MILP representation of PwCA requires only one auxiliary binary variable. For this reason, PwCA yields significantly faster solving times in large MILP problems where the MILP representation of certain functions has to be replicated many times, such as in unit commitment. To quantify the impact on solving time, we compare the performance using PwCA with the performance of simplex approximation with logarithmic formulation and show that PwCA outperforms the latter by a big margin. For this reason, we conclude that PwCA will be a useful tool to set up and solve large MILP problems such as arise in unit commitment and similar engineering optimization problems.