code: def getmin(self):
          
  
          if self.opt['ReturnVar'] == 'X':
              return self.var_x()
          elif self.opt['ReturnVar'] == 'Y0':
              return self.var_y0()
          elif self.opt['ReturnVar'] == 'Y1':
              return self.var_y1()
          else:
              raise ValueError(self.opt['ReturnVar'] + ' is not a valid value'
                               'for option ReturnVar')
docs: Get minimiser after optimisation.