FlowConstraint

class picos.constraints.FlowConstraint(G, f, source, sink, flow_value, capacity=None, graphName='')

Bases: picos.constraints.MetaConstraint

Note

Unlike other MetaConstraint implementations, this one is used (via a wrapper function) by the user, so it is raising exceptions instead of making assertions if it is instanciated incorrectly.

Attributes Summary

EQ

GE

LE

constraints

dual

prefix

size

slack

variableNames

variables

Methods Summary

constring()

copy_with_new_vars(newVars[, newCons])

delete()

draw()

expressions()

is_complex()

is_decreasing()

Whether the constraint states exactly that the left hand side is greater or equal than the right hand side.

is_equality()

Whether the constraints states the equality between the left hand side and the right hand side.

is_increasing()

Whether the constraint states exactly that the left hand side is smaller or equal than the right hand side.

is_inequality()

Whether the constraints states an inequality between the left hand side and the right hand side.

is_meta()

is_real()

keyconstring()

Attributes Documentation

EQ = '='
GE = '>'
LE = '<'
constraints
dual
prefix
size
slack
variableNames
variables

Methods Documentation

constring()
copy_with_new_vars(newVars, newCons=None)
delete()
draw()
expressions()
is_complex()
is_decreasing()

Whether the constraint states exactly that the left hand side is greater or equal than the right hand side.

is_equality()

Whether the constraints states the equality between the left hand side and the right hand side.

is_increasing()

Whether the constraint states exactly that the left hand side is smaller or equal than the right hand side.

is_inequality()

Whether the constraints states an inequality between the left hand side and the right hand side.

is_meta()
is_real()
keyconstring()