MetaConstraint¶

class
picos.constraints.
MetaConstraint
(tmpProblem, typeTerm, customString=None)¶ Bases:
picos.constraints.Constraint
An abstract base class for optimization constraints that are comprised of auxiliary variables and constraints.
Implementations
 need to implement the abstract method
_get_prefix
,  need to implement
Constraint
’s abstract methods_str
and_get_slack
,  may overwrite the default implementation for
Constraint
’s abstract methods_get_size
and_get_dual
, and  are supposed to receive or construct a temporary problem containing
the auxiliary objects and pass it to
MetaConstraint.__init__
(along with a number of standard parameters that are dispatched toConstraint.__init__
) from within their own implementation of__init__
.
Attributes Summary
EQ
GE
LE
constraints
dual
prefix
size
slack
variableNames
variables
Methods Summary
constring
()copy_with_new_vars
(newVars[, newCons])delete
()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
()¶

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
()¶
 need to implement the abstract method