qiskit_addon_opt_mapper.converters.MinimizeToMaximize¶
- class MinimizeToMaximize[source]¶
 Bases:
_FlipProblemSenseConvert a minimization problem to a maximization problem only if it is a minimization problem.
Otherwise problem’s sense is unchanged.
Methods
__init__()convert(problem)Flip the sense of a problem.
interpret(x)Convert the result of the converted problem back to that of the original problem.
- convert(problem)[source]¶
 Flip the sense of a problem.
- Parameters:
 problem (OptimizationProblem) – The problem to be flipped.
- Returns:
 A converted problem, that has the flipped sense.
- Return type:
 OptimizationProblem