def meets_goals(self, search_point_index: int) -> bool:
        """Check if the result satisfies the constraints."""
        if search_point_index >= len(self._results):
            return False

        if not self._results[search_point_index]:
            return False

        if not self._goals:
            return True  # if goals are not set, always return True

        result, _ = self._results[search_point_index]
        return all(
            (self._multipliers[name] * result[name].value) >= (self._multipliers[name] * goal)
            for name, goal in self._goals.items()
            if name in result
        )
Check if the result satisfies the constraints.
olive/search/search_results.py