<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_constraint_bound(self, name, value):
 """Set the upper bound of a constraint."""

        index = self._get_constraint_index(name)
        self.upper_bounds[index] = value
        self._reset_solution()