code: def set_objective_sense(self, sense):
          
          if sense == ObjectiveSense.Minimize:
              self._cp.objective.set_sense(self._cp.objective.sense.minimize)
          elif sense == ObjectiveSense.Maximize:
              self._cp.objective.set_sense(self._cp.objective.sense.maximize)
          else:
              raise ValueError('Invalid objective sense')
docs: Set type of problem (maximize or minimize)