code: def success(self):
          
          self._check_valid()
          return self._problem._cp.solution.get_status() in (
              self._problem._cp.solution.status.optimal,
              self._problem._cp.solution.status.optimal_tolerance,
              self._problem._cp.solution.status.MIP_optimal)
docs: Return boolean indicating whether a solution was found