diff --git a/hisim/components/controller_mpc.py b/hisim/components/controller_mpc.py index 9f17203f..a9cb903e 100644 --- a/hisim/components/controller_mpc.py +++ b/hisim/components/controller_mpc.py @@ -715,9 +715,9 @@ def optimize( # noqa: C901 # Numerical values of pv forecast (casadi fromat) pv_forecast_24h = np.reshape(np.array(pv_forecast_24h), (1, len(pv_forecast_24h))) - p_el = np.reshape(np.array(price_purchase_forecast_24h), (1, len(price_purchase_forecast_24h))) + p_el: np.ndarray = np.reshape(np.array(price_purchase_forecast_24h), (1, len(price_purchase_forecast_24h))) - feed_in_tariff = np.reshape( + feed_in_tariff: np.ndarray = np.reshape( np.array(price_injection_forecast_24h), (1, len(price_injection_forecast_24h)), )