to_docplex_mp#

to_docplex_mp(quadratic_program)[fuente]#

Returns a docplex.mp model corresponding to a quadratic program.

Parámetros:

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

Devuelve:

The docplex.mp model corresponding to a quadratic program.

Muestra:

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

Tipo del valor devuelto:

Model