Free
Resource-Related Operation Statement
The Free statement unbinds Resources owned by the Entity in a Location or Route. Entities must have received Resources through a Get or Jointly Get statement in order for the Resources to be freed.
Syntax
Free {<quantity>} <resource>{, {quantity} <resource>...}
Syntax Examples
Free Res1, 2 Res2, 5 Res3A
Free All
Free Res(Attr1)
Parameters
<quantity>
The number of Resource units to free. If the quantity field is left blank, ProModel assumes the quantity is 1. ProModel ignores a value of zero and values less than zero result in an error.
<resource>
The Resource name to free. Use the All keyword to free all the Entity's owned Resources. ProModel ignores any Resource that is not owned by the Entity.
Parameters Examples
If an Entity owns an Inspector Resource and enters a Location where the statement...
Free Inspector
...is defined, ProModel frees the Inspector Resource and the Entity no longer owns any Resources.
If instead the Entity owns five Inspector Resources and five Supervisor Resources when it encounters the statement...
Free 2 Inspector, 3 Supervisor
...ProModel frees two Inspectors and three Supervisors, and the Entity owns three Inspectors and two Supervisors. If this Entity then entered a Location with the statement...
Free All
...defined in its Logic, ProModel frees the three remaining Inspectors and two remaining Supervisors, and the Entity no longer owns any Resources.
Remarks
Free is valid in operation, downtime, move, shift, and break logic.