to_gurobipy#

to_gurobipy(quadratic_program)[ソース]#

Returns a gurobipy model corresponding to a quadratic program.

パラメータ:

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

戻り値:

The gurobipy model corresponding to a quadratic program.

例外:

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

戻り値の型:

Model