Optimization problems (qiskit_optimization.problems)#

Quadratic program#

Structures for defining an optimization problem.

Nota

The following classes are not intended to be instantiated directly. Objects of these types are available within an instantiated QuadraticProgram.

Constraint

Abstract Constraint Class.

LinearExpression

Representation of a linear expression by its coefficients.

LinearConstraint

Representation of a linear constraint.

QuadraticExpression

Representation of a quadratic expression by its coefficients.

QuadraticConstraint

Representation of a quadratic constraint.

QuadraticObjective

Representation of quadratic objective function of the form: constant + linear * x + x * quadratic * x.

QuadraticProgramElement

Interface class for all objects that have a parent QuadraticProgram.

Variable

Representation of a variable.