ln [ const1+Sum(const2*exp(x_i) ] is not the log of sum of exponentials, and can not be expressed using log_sum_exp. In fact, it’s not even necessarily convex.
As for Sum(exp(x_i)), you can write it as sum(exp(x)) if x is a vector variable.
ln [ const1+Sum(const2*exp(x_i) ] is not the log of sum of exponentials, and can not be expressed using log_sum_exp. In fact, it’s not even necessarily convex.
As for Sum(exp(x_i)), you can write it as sum(exp(x)) if x is a vector variable.