Package jline.solvers.fluid.petri
Class PetriConstraints
java.lang.Object
jline.solvers.fluid.petri.PetriConstraints
Every finite place capacity as a linear row
A x <= b.
THE GATE IS A LOSS ON THE DEPOSIT: LINE loses the tokens a firing would push past a place's capacity, so the fluid analogue scales the DEPOSIT leg of every event adding mass to the capped place and leaves the removal leg alone. The rows here name which coordinates are capped; the scaling itself lives in the tangent clamp.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PetriConstraintsconstraints(NetworkStruct sn, PetriTerms t) Build the capacity rows of a term set.
-
Field Details
-
A
(nrows x nstate) capacity rows. -
b
public double[] bThe bound of each row. -
label
One human-readable statement per row, for the report. -
cover
public boolean[][] covercover[r][s]is true where row r caps coordinate s.
-
-
Method Details
-
constraints
Build the capacity rows of a term set.- Parameters:
sn- the network the places belong tot- the assembled terms- Returns:
- the rows and their bounds
-