to_gurobipy#

to_gurobipy(quadratic_program)[source]#

Returns a gurobipy model corresponding to a quadratic program.

Parameters:

quadratic_program (QuadraticProgram) – The quadratic program to be translated.

Returns:

The gurobipy model corresponding to a quadratic program.

Raises:

QiskitOptimizationError – if non-supported elements (should never happen).

Return type:

Model