pacman.model.constraints.partitioner_constraints package

Module contents

class pacman.model.constraints.partitioner_constraints.AbstractPartitionerConstraint[source]

Bases: pacman.model.constraints.abstract_constraint.AbstractConstraint

A constraint on the partitioning of a graph

class pacman.model.constraints.partitioner_constraints.FixedVertexAtomsConstraint(size)[source]

Bases: pacman.model.constraints.partitioner_constraints.abstract_partitioner_constraint.AbstractPartitionerConstraint

A constraint which specifies the exact number of atoms on each division of a vertex.

Parameters:size (int) – The exact number of atoms to split the vertex into
size

The exact number of atoms to split the vertex into

Return type:int
class pacman.model.constraints.partitioner_constraints.MaxVertexAtomsConstraint(size)[source]

Bases: pacman.model.constraints.partitioner_constraints.abstract_partitioner_constraint.AbstractPartitionerConstraint

A constraint which limits the number of atoms on each division of a vertex.

Parameters:size (int) – The maximum number of atoms to split the vertex into
size

The maximum number of atoms to split the vertex into

Return type:int
class pacman.model.constraints.partitioner_constraints.SameAtomsAsVertexConstraint(vertex)[source]

Bases: pacman.model.constraints.partitioner_constraints.abstract_partitioner_constraint.AbstractPartitionerConstraint

A constraint which indicates that a vertex must be split in the same way as another vertex.

Parameters:vertex (ApplicationVertex) – The vertex to which the constraint refers
vertex

The vertex to partition with

Return type:ApplicationVertex