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