Scilab Function
Last update : 16/07/2008

plq_co - Piecewise linear quadratic (plq), Convex hull

Calling Sequence

plqco = plq_co(plqf)

Parameters

Description

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.

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,  

Author

Bryan Gardiner, University of British Columbia, BC, Canada

Used Function

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