Constraint

Constructor

Constraint(**kwargs)

Creates a linear or quadratic constraint for optimization models

Methods

Constraint.get_value(self[, rhs])

Returns the current value of the constraint

Constraint.get_dual(self)

Returns the dual value if exists

Constraint.set_block(self, block_number)

Sets the decomposition block number for a constraint

Constraint.set_direction(self, direction)

Changes the direction of a constraint

Constraint.set_rhs(self, value)

Changes the constant value (right-hand side) of a constraint

Constraint.update_var_coef(self, var, value)

Updates the coefficient of a variable inside the constraint