Skip to content

trim(new_name, plant_name)

is the trim (reachable and coreachable) substructure of DES

Parameters

Name Type Description Default
new_name string new DES model name required
plant_name string plant DES model name required

Example

sample 1
delta = [
    (0, 10, 1),
    (1, 11, 2),
    (2, 11, 0),
    (2, 13, 3)
]
Qm = [0, 1]
pytct.create("model_1", 4, delta, Qm)

pytct.trim("model_2", "model_1")
sample 2
delta = [
    (0, 10, 1),
    (1, 11, 2),
    (2, 11, 0),
    (3, 13, 2)
]
Qm = [0, 3]
pytct.create("model_1", 4, delta, Qm)

pytct.trim("model_2", "model_1")