modules.applications.optimization.salbp.salbp.Task

class Task(id: int, time: int)

Bases: NamedTuple

A Task for an Assembly Line Balancing Problem.

Attributes:

id: ID of this task time: Time that is needed to complete this task

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

id

Alias for field number 0

time

Alias for field number 1

count(value, /)

Return number of occurrences of value.

id: int

Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

time: int

Alias for field number 1