English
Languages
English
Shortcuts



OptimizationApplicationΒΆ

class OptimizationApplication[source]ΒΆ

Bases: abc.ABC

An abstract class for optimization applications.

Methods

interpret(result)

Convert the calculation result of the problem (OptimizationResult or a binary array using np.ndarray) to the answer of the problem in an easy-to-understand format.

sample_most_likely(state_vector)

Compute the most likely binary string from state vector.

to_quadratic_program()

Convert a problem instance into a QuadraticProgram