# Minimizing a sum of functions

Hello,

I have an expression that I have to minimize. The expression is a sum of piecewise functions each function depending on 3 variables.

Let's say Si(ai,bi,ci) is my function, i goes from 1 to N. The sum that I try to minimize is The sum of all Si functions (i from 1 to N).

Is the first derivative an option in this case? We're talking about 3*N variables (ai,bi,ci where i is from 1 to N).

Thanks,

Iulian

• It sounds like the variables are independent, and so the minimum of the sum is the sum of the minima, in which case find the minimum for each function i, and then sum the N minima. Gerhard "Sometimes The Obvious Is Simple" Paseman, 2011.02.24 – Gerhard Paseman Feb 24 '11 at 10:21