Translate a docplex.mp model into a quadratic program.
Note that this supports only basic functions of docplex as follows: - quadratic objective function - linear / quadratic / indicator constraints - binary / integer / continuous variables
Model) – The docplex.mp model to be loaded.
float]) – The big-M value used for the big-M formulation to convert indicator constraints into linear constraints. If
None, it is automatically derived from the model.
- Return type
The quadratic program corresponding to the model.
QiskitOptimizationError – if the model contains unsupported elements.