Name

plq_co — Piecewise linear quadratic (plq), Convex hull

Calling Sequence

plqco = plq_co(plqf)

Parameters

plqf

matrix. A plq function whose convex hull will be computed.

plqco

matrix. A plq function that is the convex hull of the original function.

Description

<listitem>

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>

Examples

// 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);
  

See Also

plq_function

Authors

Bryan Gardiner, University of British Columbia, BC, Canada

Used Functions

plq_conv_on_interval is used to ensure that pieces of a function are convex on an interval.