plq_co - Piecewise linear quadratic (plq), Convex hull
Compute the convex hull of a continuous, but not necessarily convex, plq function, where the input and output are given in the form of a plq matrix.
// The hull of a linear-linear-quadratic function: plqf = [0,0,1,0;2,0,0,0;%inf,1,-4,4]; result = plq_co(plqf), plq_plot(plqf, result); // The hull of a more complicated function: plqf =[-3,1,8,16;0,0,-1,-2;3,0,1,-2;%inf,1,-8,16]; result = plq_co(plqf), plq_plot(plqf, result);
Bryan Gardiner, University of British Columbia, BC, Canada