pacman.model.constraints.partitioner_constraints package

Submodules

pacman.model.constraints.partitioner_constraints.abstract_partitioner_constraint module

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

Bases: pacman.model.constraints.abstract_constraint.AbstractConstraint

A constraint on the partitioning of a graph

pacman.model.constraints.partitioner_constraints.max_vertex_atoms_constraint module

class pacman.model.constraints.partitioner_constraints.max_vertex_atoms_constraint.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

pacman.model.constraints.partitioner_constraints.same_atoms_as_vertex_constraint module

class pacman.model.constraints.partitioner_constraints.same_atoms_as_vertex_constraint.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 (pacman.model.graph.application.application_vertex.ApplicationVertex) – The vertex to which the constraint refers
Raises:None – does not raise any known exceptions
vertex

The vertex to partition with

Returns:the vertex
Return type:pacman.model.graph.application.application_vertex.ApplicationVertex
Raises:None – does not raise any known exceptions

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.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 (pacman.model.graph.application.application_vertex.ApplicationVertex) – The vertex to which the constraint refers
Raises:None – does not raise any known exceptions
vertex

The vertex to partition with

Returns:the vertex
Return type:pacman.model.graph.application.application_vertex.ApplicationVertex
Raises:None – does not raise any known exceptions