English
Languages
English
Bengali
Japanese
Spanish



QuadraticConstraint

class QuadraticConstraint(quadratic_program, name, linear, quadratic, sense, rhs)[source]

Bases: Constraint

Representation of a quadratic constraint.

Constructs a quadratic constraint, consisting of a linear and a quadratic term.

Parameters:

Attributes

linear

Returns the linear expression corresponding to the left-hand-side of the constraint.

quadratic

Returns the quadratic expression corresponding to the left-hand-side of the constraint.

Methods

evaluate(x)

Evaluate the left-hand-side of the constraint.