Something is fishy, ââevery time I connect the car and try according to your examples, I get that the system is Infeasible
2024-05-20 17:25:00,248 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [0.5, 0.58, 0.61, 0.61, 0.56, 0.44, 0.26, 0.24, 0.23, 0.21, 0.2, 0.22, 0.3, 0.59, 0.83, 0.91, 0.63, 0.56, 0.48, 0.42, 0.38, 0.33, 0.42, 0.48], 'prod_price_forecast': [0.5, 0.58, 0.61, 0.61, 0.56, 0.44, 0.26, 0.24, 0.23, 0.21, 0.2, 0.22, 0.3, 0.59, 0.83, 0.91, 0.63, 0.56, 0.48, 0.42, 0.38, 0.33, 0.42, 0.48], 'prediction_horizon': 24, 'pv_power_forecast': [5138, 4006, 2333, 645, 14, 0, 0, 0, 0, 0, 0, 34, 129, 163, 1088, 2604, 4294, 5691, 6835, 7585, 7962, 7974, 7569, 6788, 5634, 4184, 2511, 815, 17, 0, 0], 'load_power_forecast': [806, 700, 700, 700, 800, 800, 600, 600, 700, 600, 500, 500, 400, 600, 1700, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 700, 700, 400, 400, 400, 600, 600, 600, 600, 600, 600, 600, 700, 600, 600, 700, 600, 600, 600, 600, 700, 600, 600], 'soc_init': 1.0, 'soc_final': 1.0, 'delta_forecast': 2, 'def_total_hours': [0.0, 0, 10], 'def_end_timestep': [0, 0, 12]}
2024-05-20 17:25:00,248 - web_server - INFO - >> Setting input data dict
2024-05-20 17:25:00,248 - web_server - INFO - Setting up needed data
2024-05-20 17:25:00,250 - web_server - INFO - Retrieve hass get data method initiated...
2024-05-20 17:25:00,719 - web_server - INFO - Retrieving weather forecast data using method = list
2024-05-20 17:25:00,723 - web_server - INFO - >> Performing naive MPC optimization...
2024-05-20 17:25:00,723 - web_server - INFO - Performing naive MPC optimization
2024-05-20 17:25:00,733 - web_server - INFO - Perform an iteration of a naive MPC controller
2024-05-20 17:25:00,740 - web_server - WARNING - Deferrable load 2 : Available timeframe is shorter than the specified number of hours to operate. Optimization will fail.
2024-05-20 17:25:00,780 - web_server - INFO - Status: Infeasible
2024-05-20 17:25:00,780 - web_server - INFO - Total value of the Cost function = 27.15
2024-05-20 17:25:06,028 - web_server - INFO - Passed runtime parameters: {}
2024-05-20 17:25:06,029 - web_server - INFO - >> Setting input data dict
2024-05-20 17:25:06,029 - web_server - INFO - Setting up needed data
2024-05-20 17:25:06,030 - web_server - INFO - >> Publishing data...
2024-05-20 17:25:06,030 - web_server - INFO - Publishing data to HASS instance
2024-05-20 17:25:06,042 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = 5401.74
2024-05-20 17:25:06,050 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 782.46
2024-05-20 17:25:06,058 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2024-05-20 17:25:06,065 - web_server - INFO - Successfully posted to sensor.p_deferrable1 = 0.0
2024-05-20 17:25:06,072 - web_server - INFO - Successfully posted to sensor.p_deferrable2 = 0.0
2024-05-20 17:25:06,079 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = 0.0
2024-05-20 17:25:06,086 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 100.0
2024-05-20 17:25:06,094 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = -4619.29
2024-05-20 17:25:06,101 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = 30.13
2024-05-20 17:25:06,107 - web_server - INFO - Successfully posted to sensor.optim_status = Infeasible
2024-05-20 17:25:06,114 - web_server - INFO - Successfully posted to sensor.unit_load_cost = 0.5
2024-05-20 17:25:06,121 - web_server - INFO - Successfully posted to sensor.unit_prod_price = 0.5``
And when the car is disconnected.
024-05-20 17:35:00,258 - web_server - INFO - Passed runtime parameters: {'load_cost_forecast': [0.5, 0.58, 0.61, 0.61, 0.56, 0.44, 0.26, 0.24, 0.23, 0.21, 0.2, 0.22, 0.3, 0.59, 0.83, 0.91, 0.63, 0.56, 0.48, 0.42, 0.38, 0.33, 0.42, 0.48], 'prod_price_forecast': [0.5, 0.58, 0.61, 0.61, 0.56, 0.44, 0.26, 0.24, 0.23, 0.21, 0.2, 0.22, 0.3, 0.59, 0.83, 0.91, 0.63, 0.56, 0.48, 0.42, 0.38, 0.33, 0.42, 0.48], 'prediction_horizon': 24, 'pv_power_forecast': [5138, 4006, 2333, 645, 14, 0, 0, 0, 0, 0, 0, 34, 129, 163, 1088, 2604, 4294, 5691, 6835, 7585, 7962, 7974, 7569, 6788, 5634, 4184, 2511, 815, 17, 0, 0], 'load_power_forecast': [1711, 700, 700, 800, 800, 600, 600, 700, 600, 500, 500, 400, 600, 1700, 600, 600, 600, 600, 600, 600, 600, 600, 600, 600, 700, 700, 400, 400, 400, 600, 600, 600, 600, 600, 600, 600, 700, 600, 600, 700, 600, 600, 600, 600, 700, 600, 600, 800], 'soc_init': 1.0, 'soc_final': 1.0, 'delta_forecast': 2, 'def_total_hours': [0.0, 0, 10], 'def_end_timestep': [0, 0, 0]}
2024-05-20 17:35:00,259 - web_server - INFO - >> Setting input data dict
2024-05-20 17:35:00,259 - web_server - INFO - Setting up needed data
2024-05-20 17:35:00,265 - web_server - INFO - Retrieve hass get data method initiated...
2024-05-20 17:35:00,750 - web_server - INFO - Retrieving weather forecast data using method = list
2024-05-20 17:35:00,753 - web_server - INFO - >> Performing naive MPC optimization...
2024-05-20 17:35:00,753 - web_server - INFO - Performing naive MPC optimization
2024-05-20 17:35:00,764 - web_server - INFO - Perform an iteration of a naive MPC controller
2024-05-20 17:35:00,844 - web_server - INFO - Status: Optimal
2024-05-20 17:35:00,844 - web_server - INFO - Total value of the Cost function = 24.15
2024-05-20 17:35:06,065 - web_server - INFO - Passed runtime parameters: {}
2024-05-20 17:35:06,065 - web_server - INFO - >> Setting input data dict
2024-05-20 17:35:06,065 - web_server - INFO - Setting up needed data
2024-05-20 17:35:06,067 - web_server - INFO - >> Publishing data...
2024-05-20 17:35:06,067 - web_server - INFO - Publishing data to HASS instance
2024-05-20 17:35:06,081 - web_server - INFO - Successfully posted to sensor.p_pv_forecast = 5343.18
2024-05-20 17:35:06,089 - web_server - INFO - Successfully posted to sensor.p_load_forecast = 1253.3
2024-05-20 17:35:06,101 - web_server - INFO - Successfully posted to sensor.p_deferrable0 = 0.0
2024-05-20 17:35:06,109 - web_server - INFO - Successfully posted to sensor.p_deferrable1 = 0.0
2024-05-20 17:35:06,118 - web_server - INFO - Successfully posted to sensor.p_deferrable2 = 0.0
2024-05-20 17:35:06,126 - web_server - INFO - Successfully posted to sensor.p_batt_forecast = 0.0
2024-05-20 17:35:06,135 - web_server - INFO - Successfully posted to sensor.soc_batt_forecast = 100.0
2024-05-20 17:35:06,143 - web_server - INFO - Successfully posted to sensor.p_grid_forecast = -4089.88
2024-05-20 17:35:06,151 - web_server - INFO - Successfully posted to sensor.total_cost_fun_value = 27.13
2024-05-20 17:35:06,160 - web_server - INFO - Successfully posted to sensor.optim_status = Optimal
2024-05-20 17:35:06,169 - web_server - INFO - Successfully posted to sensor.unit_load_cost = 0.5
2024-05-20 17:35:06,176 - web_server - INFO - Successfully posted to sensor.unit_prod_price = 0.5