Cost Dimension Indicators¶
process_performance_indicators.indicators.cost.instances
¶
fixed_cost_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The fixed cost associated with an activity instance, measured as the latest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
float | None
|
The fixed cost for single events of an activity instance. |
None |
float | None
|
If no fixed cost is found. |
Source code in process_performance_indicators/indicators/cost/instances.py
fixed_cost_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The fixed cost associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
inventory_cost_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The inventory cost associated with an activity instance, measured as the latest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
inventory_cost_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The inventory cost associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
labor_cost_and_total_cost_ratio(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the labor cost associated with the activity instance, and the total cost associated with the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": The aggregation mode for single events of an activity instance. "sum": The aggregation mode for the sum of all events of an activity instance. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
labor_cost_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The labor cost associated with an activity instance, measured as the lastest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
labor_cost_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The labor cost associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
total_cost_and_lead_time_ratio(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with the activity instance, and the total elapsed time of the activity instance. In cost per hour.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": The aggregation mode for single events of an activity instance. "sum": The aggregation mode for the sum of all events of an activity instance. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
total_cost_and_outcome_unit_ratio(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with the activity instance, and the outcome units associated with the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost and outcome unit calculations. "sum": Considers the sum of all events of activity instances for cost and outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
total_cost_and_service_time_ratio(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with the activity instance, and the elapsed time between the start and complete events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
total_cost_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The total cost associated with an activity instance, measured as the lastest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
total_cost_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The total cost associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
variable_cost_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The variable cost associated with an activity instance, measured as the latest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
variable_cost_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The variable cost associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/cost/instances.py
process_performance_indicators.indicators.cost.activities
¶
fixed_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The fixed cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
human_resource_count(event_log: pd.DataFrame, activity_name: str) -> int
¶
The number of human resources that are involved in the execution of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
inventory_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The inventory cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
labor_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The labor cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
labor_cost_and_total_cost_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the labor cost associated with all instantiations of the activity, and the total cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
resource_count(event_log: pd.DataFrame, activity_name: str) -> int
¶
The number of resources that are involved in the execution of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
rework_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost of all times that the activity has been instantiated again, after its first instantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
rework_count(event_log: pd.DataFrame, activity_name: str) -> int
¶
The number of times that the activity has been instantiated again, after its first intantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
rework_percentage(event_log: pd.DataFrame, activity_name: str) -> float
¶
The percentage of times that the activity has been instantiated again, after its first instantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
total_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
total_cost_and_lead_time_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all instantiations of the activity, and the sum of total elapsed times for all instantiations of the activity. In cost per hour.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
total_cost_and_outcome_unit_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all instantiations of the activity, and the outcome units associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost and outcome unit calculations. "sum": Considers the sum of all events of activity instances for cost and outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
total_cost_and_service_time_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all instantiations of the activity, and the sum of elapsed times between the start and complete events of all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
variable_cost(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The variable cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The activity name. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/activities.py
process_performance_indicators.indicators.cost.cases
¶
automated_activity_cost(event_log: pd.DataFrame, case_id: str, automated_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The total cost associated with all instantiations of automated activities in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
desired_activity_count(event_log: pd.DataFrame, case_id: str, desired_activities: set[str]) -> int
¶
The number of instantiated activities whose occurrences is desirable in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Returns:
| Type | Description |
|---|---|
int
|
The number of instantiated activities whose occurrences is desirable in the case. |
Source code in process_performance_indicators/indicators/cost/cases.py
direct_cost(event_log: pd.DataFrame, case_id: str, direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The total cost associated with all instantiations of activities that have a direct effect on the outcome of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct effect on the outcome of the case. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
fixed_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The fixed cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl" considers single events of activity instances for cost calculations. "sum" considers the sum of all events of activity intances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
human_resource_count(event_log: pd.DataFrame, case_id: str) -> int
¶
The number of human resources that are involved in the execution of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
inventory_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The inventory cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl" considers single events of activity instances for cost calculations. "sum" considers the sum of all events of activity intances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
labor_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The labor cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl" considers single events of activity instances for cost calculations. "sum" considers the sum of all events of activity intances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
labor_cost_and_total_cost_ratio(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the labor cost associated with all activity instances of the case, and the total cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
maintenance_cost(event_log: pd.DataFrame, case_id: str) -> float
¶
The maintenance cost associated with the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
missed_deadline_cost(event_log: pd.DataFrame, case_id: str) -> float
¶
The cost for missing deadlines associated with the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
overhead_cost(event_log: pd.DataFrame, case_id: str, direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all instantiations of activities that do not have a direct effect on the outcome of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct cost on the outcome of the case. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
resource_count(event_log: pd.DataFrame, case_id: str) -> int
¶
The number of resources that are involved in the execution of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
rework_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost of all times that any activity has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
rework_count(event_log: pd.DataFrame, case_id: str) -> int
¶
The number of times that any activity has been instantiated again, after its first intantiation, in the case.
Source code in process_performance_indicators/indicators/cost/cases.py
rework_percentage(event_log: pd.DataFrame, case_id: str) -> float
¶
The percentage of times that any activity has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
total_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
total_cost_and_lead_time_ratio(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the case, and the total elpased time between the earliest and latest timestamps in the case. In cost per hour.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
total_cost_and_outcome_unit_ratio(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the case, and the outcome units associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode.H "sgl": Considers single events of activity instances for cost and outcome unit calculations. "sum": Considers the sum of all events of activity instances for cost and outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
total_cost_and_service_time_ratio(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the case, and the sum of elapsed times between the start and complete events of all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
transportation_cost(event_log: pd.DataFrame, case_id: str) -> float
¶
The transportation cost associated with the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
variable_cost(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The variable cost associated with all activity instances of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
warehousing_cost(event_log: pd.DataFrame, case_id: str) -> float
¶
The warehousing cost associated with the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case id. |
required |
Source code in process_performance_indicators/indicators/cost/cases.py
process_performance_indicators.indicators.cost.groups
¶
automated_activity_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The total cost associated with all instantiations of automated activities in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
desired_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], desired_activities: set[str]) -> int
¶
The number of instantiated activities whose occurrence is desirable in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
direct_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The total cost associated with all instantiations of activities that have a direct effect on the outcome of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct effect on the outcome of the group of cases. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_automated_activity_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The expected total cost associated with all instantiations of automated activities in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_desired_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], desired_activities: set[str]) -> float
¶
The expected number of instantiated activities whose occurrence is desirable in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_direct_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The expected total cost associated with all instantiations of activities that have a direct effect on the outcome of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct effect on the outcome of the group of cases. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_fixed_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float | None
¶
The expected fixed cost associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_human_resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected number of human resources that are involved in the execution of cases belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_inventory_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected inventory cost associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_labor_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float | None
¶
The expected labor cost associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_labor_cost_and_total_cost_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected ratio between the labor cost associated with all activity instances of the group of cases, and the total cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_maintenance_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected maintenance cost associated with a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_missed_deadline_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected cost for missing deadlines associated with a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_overhead_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all instantiations of activities that do not have a direct effect on the outcome of case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct cost on the outcome of the cases. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected number of resources that are involved in the execution of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_rework_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected total cost of all times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_rework_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected number of times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_rework_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected percentage of times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_total_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float | None
¶
The expected total cost associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_total_cost_and_lead_time_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the expected total cost associated with all activity instances of a case belonging to the group of cases, and the expected total elapsed time between the earliest and latest timestamps in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_total_cost_and_outcome_unit_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the expected total cost associated with all activity instances of a case belonging to the group of cases, and the expected outcome units associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost and outcome unit calculations. "sum": Considers the sum of all events of activity instances for cost and outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_total_cost_and_service_time_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the expected total cost associated with all activity instances of a case belonging to the group of cases, and the expected sum of elapsed times between the start and complete events of all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_transportation_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected transportation cost associated with a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_variable_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected variable cost associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
expected_warehousing_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected warehousing cost associated with a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
fixed_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The fixed cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
human_resource_and_case_count_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float | None
¶
The ratio between the number of human resources that are involved in the execution of cases in the group of cases, and the number of cases belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
human_resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of human resources that are involved in the execution of cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
inventory_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The inventory cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
labor_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The labor cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
labor_cost_and_total_cost_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the labor cost associated with all activity instances of the group of cases, and the total cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
maintenance_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The maintenance cost associated with all cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
missed_deadline_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The cost for missing deadlines associated with all cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
overhead_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], direct_cost_activities: set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all instantiations of activities that do not have a direct effect on the outcome of the cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
direct_cost_activities
|
set[str]
|
The set of activities that have a direct cost on the outcome of the cases. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of resources that are involved in the execution of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
rework_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost of all times that any activity has been instantiated again, after its first instantiation, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
rework_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of times that any activity has been instantiated again, after its first intantiation, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
rework_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The percentage of times that any activity has been instantiated again, after its first instantiation, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
total_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The total cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
total_cost_and_lead_time_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the group of cases, and the total elapsed time between the earliest and latest events in the group of cases. In cost per hour.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
total_cost_and_outcome_unit_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the group of cases, and the outcome units associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost and outcome unit calculations. "sum": Considers the sum of all events of activity instances for cost and outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
total_cost_and_service_time_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the group of cases, and the sum of elapsed times between the start and complete events of all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
transportation_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The transportation cost associated with all cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
variable_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The variable cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/cost/groups.py
warehousing_cost(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The warehousing cost associated with all cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case ids. |
required |