lumix.analysis.whatif.LXWhatIfResult¶
- class lumix.analysis.whatif.LXWhatIfResult(description, original_objective, new_objective, delta_objective, delta_percentage, original_solution, new_solution, changes_applied=<factory>)[source]¶
Results of a what-if analysis.
- Parameters:
description (str)
original_objective (float)
new_objective (float)
delta_objective (float)
delta_percentage (float)
original_solution (LXSolution[TModel])
new_solution (LXSolution[TModel])
changes_applied (List[LXWhatIfChange])
- description¶
Description of the change
- original_objective¶
Original objective value
- new_objective¶
New objective value
- delta_objective¶
Change in objective value
- delta_percentage¶
Percentage change in objective
- original_solution¶
Original solution
- new_solution¶
New solution with change applied
- changes_applied¶
List of changes applied
- __init__(description, original_objective, new_objective, delta_objective, delta_percentage, original_solution, new_solution, changes_applied=<factory>)¶
- Parameters:
description (str)
original_objective (float)
new_objective (float)
delta_objective (float)
delta_percentage (float)
original_solution (LXSolution[TModel])
new_solution (LXSolution[TModel])
changes_applied (List[LXWhatIfChange])
- Return type:
None
Methods
__init__(description, original_objective, ...)Attributes
-
original_solution:
LXSolution[TypeVar(TModel)]¶
-
new_solution:
LXSolution[TypeVar(TModel)]¶
-
changes_applied:
List[LXWhatIfChange]¶
- __init__(description, original_objective, new_objective, delta_objective, delta_percentage, original_solution, new_solution, changes_applied=<factory>)¶
- Parameters:
description (str)
original_objective (float)
new_objective (float)
delta_objective (float)
delta_percentage (float)
original_solution (LXSolution[TModel])
new_solution (LXSolution[TModel])
changes_applied (List[LXWhatIfChange])
- Return type:
None