CplexOptimizer.solve¶
- CplexOptimizer.solve(problem)[ソース]¶
Tries to solves the given problem using the optimizer.
Runs the optimizer to try to solve the optimization problem. If problem is not convex, this optimizer may raise an exception due to incompatibility, depending on the settings.
- パラメータ
problem (
QuadraticProgram
) – The problem to be solved.- 戻り値の型
- 戻り値
The result of the optimizer applied to the problem.
- 例外
QiskitOptimizationError – If the problem is incompatible with the optimizer.