Function to compute the upperbound for the maximization branch-and-bound algorithm.
The object for which to compute the upperbound.
The upperbound score.