Return value of variable in solution.

def _get_value(self, var):
        """Return value of variable in solution."""
        return self._problem._cp.solution.get_values(
            self._problem._variables[var])