Package parsimony :: Package functions :: Module properties :: Class Constraint
[hide private]
[frames] | no frames]

Class Constraint

source code

object --+
         |
        Constraint
Known Subclasses:

Represents a constraint of a function.

Constraints must take a parameter penalty_start, with default value 0.
Columns, variables or corresponding entities with indices smaller than
penalty_start must not be penalised.

Parameters
----------
penalty_start : The number of columns, variables etc., to except from
        penalisation. Equivalently, the first index to be penalised.
        Default is 0, all columns are included.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
feasible(self, x)
Feasibility of the constraint at point x.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset(['feasible'])
  _abc_cache = <_weakrefset.WeakSet object at 0x30b17d0>
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x30b1850>
  _abc_negative_cache_version = 10
  _abc_registry = <_weakrefset.WeakSet object at 0x30b1710>
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

feasible(self, x)

source code 

Feasibility of the constraint at point x.

Decorators:
  • @abc.abstractmethod