Are you talking about the primal-integral displayed by CP-SAT ? we use a non-standard formula...
First the gap is between the best bound and the best solution, so maximization or minimization will not change anything as the "gap" will always be positive and decreasing, reaching 0 at optimal.
I think the primal_ prefix is wrong, I will fix the name right away.
We don't use a relative gap, as adding a constant offset to the objective changes its definition.
Instead we use log(1+absolute_difference_between_two_objective) so we kind of track the order of magnitude of the gap.
And the graph changes each time we find a new solution or improve the best objective bound.
Probably yes, if you try to compare different model on the same problem, then a lower integral means a smallest gap faster.
We haven't used it extensively, so we cannot say :)
You can probably compute whatever formula you want instead of our custom one if you think it is a better fit for what you want to do.
Thanks,
Priidik