to_gurobipy#

to_gurobipy(quadratic_program)[fuente]#

Returns a gurobipy model corresponding to a quadratic program.

Parámetros:

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

Devuelve:

The gurobipy model corresponding to a quadratic program.

Muestra:

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

Tipo del valor devuelto:

Model