to_docplex_mp#

to_docplex_mp(quadratic_program)[source]#

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