CobylaOptimizer.solve

CobylaOptimizer.solve(problem)[source]

Tries to solves the given problem using the optimizer.

Runs the optimizer to try to solve the optimization problem.

Parameters

problem (QuadraticProgram) – The problem to be solved.

Return type

OptimizationResult

Returns

The result of the optimizer applied to the problem.

Raises

QiskitOptimizationError – If the problem is incompatible with the optimizer.