<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def objectives(self, rank):
 """Returns objective values of models with specified rank. """

        self._check_rank(rank)
        return [result.obj for result in self.results[rank]]