F
F
FedorIskhakov2014-03-13 02:39:34
Algorithms
FedorIskhakov, 2014-03-13 02:39:34

Is there a standard algorithm for calculating the envelope of a family of piecewise linear functions?

Given: a set of continuous piecewise linear functions, each with its own set of breakpoints, for example (dotted lines are a special case, you should not pay attention to them):
env1.png
Required: calculate the upper envelope of the family, that is, such a piecewise linear function, value which at each point is equal to the maximum of the values ​​of the functions of the family at this point. It is required to find the red line in the picture:
env2.png
For the solution, of course, it is enough to build a set of break points of the desired function. Own algorithm is thought up and even written, but it would not be desirable to reinvent bicycles. Therefore, the question is: is there a problem that can be solved by standard algorithms, to which this problem would be reduced?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2014-03-13
@FedorIskhakov

Points (x 1 ; 0) and (x n ; 0) are added to each line (projections of extreme points on the X axis), a polygon is obtained. Next is the algorithm for adding polygons.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question