<< supplychainscheduleex MaxPlusAndPetrinet tlreduced >>

MaxPlusAndPetrinet >> MaxPlusAndPetrinet > tlintersection

tlintersection

Generate Petri net for traffic lights in intersection

Calling Sequence

[forward,backward,x0,np,nt] = tlintersection(th,tk)

Parameters

forward
: Forward incidence.
backward
: Backward incidence.
x0
: Initial condition.
np
: Column vector represents name of each place in Petri net.
nt
: Column vector represents name of each transition in Petri net.
th
: Column vector contains time green lights turn on in every lanes.
tk
: Column vector contains time yellow lights turn on in every lanes.

Description

This function is used to generate Petri net for traffic lights in intersection. The input of this function is time green and yellow traffic lights turn on in every lanes. The result is forward incidence, backward incidence and column vector represents initial condition of Petri net. Number of lanes in intersection denoted by number of elements in both input vector.

Examples

th = [6;6]; // time green lights turn on

tk = [4;4]; // time yellow lights turn on

[f,b,x0,np,nt] = tlintersection(th,tk) // generate Petri net

Authors

See Also


Report an issue
<< supplychainscheduleex MaxPlusAndPetrinet tlreduced >>