code: def add_offset(self, offset):
          
          self.offset += offset
  
          try:
              self._counterpart.add_offset(offset)
          except AttributeError:
              pass
docs: Add specified value to the offset of a binary quadratic model.
  
          Args:
              offset (number):
                  Value to be added to the constant energy offset of the binary quadratic model.
  
          Examples:
  
              This example creates an Ising model with an offset of -0.5 and then
              adds to it.
  
              >>> import dimod
              ...
              >>> bqm = dimod.BinaryQuadraticModel({0: 0.0, 1: 0.0}, {(0, 1): 0.5}, -0.5, dimod.SPIN)
              >>> bqm.add_offset(1.0)
              >>> bqm.offset
              0.5