from_docplex_mp#
- from_docplex_mp(model, indicator_big_m=None)[ソース]#
Translate a docplex.mp model into a quadratic program.
Note that this supports the following features of docplex:
linear / quadratic objective function
linear / quadratic / indicator constraints
binary / integer / continuous variables
logical expressions (
logical_not
,logical_and
, andlogical_or
)
- パラメータ:
- 戻り値:
The quadratic program corresponding to the model.
- 例外:
QiskitOptimizationError – if the model contains unsupported elements.
- 戻り値の型: