English
Languages
English
Shortcuts



to_gurobipy

to_gurobipy(quadratic_program)[source]

Returns a gurobipy model corresponding to a quadratic program.

Parameters

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

Return type

Model

Returns

The gurobipy model corresponding to a quadratic program.

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

  • MissingOptionalLibraryError – if gurobipy is not installed.