create_resource: Adding resources to a simulation

Description Usage Arguments Value

Description

If the simulation_environment variable does not yet exists in the global environment. The function first creates simulation environment object of the simmer package. Afterwards, the function is adding resources to the simulation environment. The simulation will only run when all resources defined by the function add_resource_to_activity, are also defined in the simulation environment (see ?add_resource_to_activity)

Usage

1
2
create_resource(process_sim_model, resource = "", capacity = 1,
  max_queue_size = Inf, schedule)

Arguments

process_sim_model

Process simulation model met simmer traj en simmer simmulation environment

resource

Character variable containing the name of the resource-type.

capacity

Number of resources present in the simulation environment.

max_queue_size

Can be used to identify when the queue_size of a resource is limited. Instances arriving at the queue when the queue_size is at its maximal queue size will leave the system without finishing it.

schedule

Can be used to define work schedules for resources, when present the capacity parameter will be ignored.Accepts schedules created by the schedule()-function of the simmer-package (see ?schedule())

Value

Process simulation model met simmer traj en simmer simmulation environment


fgailly/BPS-package documentation built on May 8, 2019, 11:44 a.m.