to_docplex_mp#

to_docplex_mp(quadratic_program)[ソース]#

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

パラメータ:

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

戻り値:

The docplex.mp model corresponding to a quadratic program.

例外:

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

戻り値の型:

Model