if conv_opt_model.objective_direction in [ObjectiveDirection.max, ObjectiveDirection.maximize]:
            c *= -1.
            Q *= -1.
        elif conv_opt_model.objective_direction not in [ObjectiveDirection.min, ObjectiveDirection.minimize]:
            raise ConvOptError('Unsupported objective direction "{}"'.format(conv_opt_model.objective_direction))