the functions calculate_EOM_price_forecast() and calculate_residual_demand_forecast() in forecast.py use forecast["demand_EOM"], but this is never defined in the code, it has to be specifically used in the csv input for demand.
This results in an error in the pay_as_clear clearing algorithm if instead of one demand, several demand units are used.
Maybe a sum of all demand in the EOM market could be inserted here.
the functions calculate_EOM_price_forecast() and calculate_residual_demand_forecast() in forecast.py use forecast["demand_EOM"], but this is never defined in the code, it has to be specifically used in the csv input for demand. This results in an error in the pay_as_clear clearing algorithm if instead of one demand, several demand units are used. Maybe a sum of all demand in the EOM market could be inserted here.