# Integral of PWL-Constraint in Gurobi (Java)

In my optimization model, I use piecewise-linear constraints with the output of $$y[m]$$. The question or problem I have now is whether there is a way in Gurobi (Java) to form the integral for this PWL in my objective function, from $$-20$$ to my $$x[m]$$, where $$x[m]$$ is my optimization variable. I need the area between the $$x$$-axis and the PWL constraint, where $$y[m]$$ is always $$\ge0$$.