Adjust OrderHistory.choose_tactical_model() heuristic

- use the `HorizontalSMAModel` for low demand
- use the `TrivialModel` for no demand
This commit is contained in:
Alexander Hess 2021-02-02 15:20:02 +01:00
commit 23391c2fa4
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
2 changed files with 4 additions and 8 deletions

View file

@ -545,12 +545,10 @@ class OrderHistory:
elif add >= 10: # = "medium demand"
return models.HorizontalETSModel(order_history=self)
elif add >= 2.5: # = "low demand"
# TODO: create HorizontalSMAModel
return models.HorizontalETSModel(order_history=self)
return models.HorizontalSMAModel(order_history=self)
# = "no demand"
# TODO: create HorizontalTrivialModel
return models.HorizontalETSModel(order_history=self)
return models.TrivialModel(order_history=self)
raise RuntimeError(
'no rule for the given average daily demand and training horizon',