def set_objective_sense(self, sense):
if sense not in (ObjectiveSense.Minimize, ObjectiveSense.Maximize):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self._p.ModelSense = self.OBJ_SENSE_MAP[sense]<EOL>
Set type of problem (maximize or minimize).