plq_co — Piecewise linear quadratic (plq), Convex hull
plqco = plq_co(plqf)
matrix. A plq function whose convex hull will be computed.
matrix. A plq function that is the convex hull of the original function.
Computes 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.
</listitem>// 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);
plq_conv_on_interval is used to ensure that pieces of a function are convex on an interval.