Piecewise linear quadratic (plq), convexity test
b = plq_isConvex(plqf)
matrix. A PLQ function.
boolean. Whether or not plqf is a convex function.
Determines whether or not plqf is a convex PLQ function, by testing whether it is equal to its convex hull. True is returned if and only if plqf is convex. This function runs in O(n) time, where n is the number of pieces in plqf.
Bryan Gardiner
, University of British Columbia, BC, Canada