MinimizeActionCosts
- class unified_planning.model.metrics.MinimizeActionCosts(costs: Dict[Action, Timing | Timepoint | int | float | Fraction | FNode | Fluent | Parameter | Variable | bool | str | Object], default: Timing | Timepoint | int | float | Fraction | FNode | Fluent | Parameter | Variable | bool | str | Object | None = None, environment: Environment | None = None)[source]
Bases:
PlanQualityMetric
This metric means that only the
Plan
minimizing the total cost of theActions
is valid.The costs for each Action of the problem is stored in this quality metric.
- get_action_cost(action: Action) FNode | None [source]
Returns the cost of the given Action.
- Parameters:
action – The action of which cost must be retrieved.
- Returns:
The expression representing the cost of the given action. If the retrieved cost is None it means it is not set and therefore it’s invalid; every action cost MUST be set, either with the cost mapping or with the default.
- property environment: Environment
- static is_maximize_expression_on_final_state()
- static is_minimize_expression_on_final_state()
- static is_minimize_makespan()
- static is_minimize_sequential_plan_length()
- static is_oversubscription()
- static is_temporal_oversubscription()