def set_objective_sense(self, sense):
if sense == ObjectiveSense.Minimize:<EOL><INDENT>self._cp.objective.set_sense(self._cp.objective.sense.minimize)<EOL><DEDENT>elif sense == ObjectiveSense.Maximize:<EOL><INDENT>self._cp.objective.set_sense(self._cp.objective.sense.maximize)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
Set type of problem (maximize or minimize)