def evaluate_strategy(self, strategy, mode=None): for dp in self.dp_timeslots: # Run a market sequence with all the bids of the corresponding dp strdp = str(dp) if dp>9 else "0"+str(dp) bid_file_tag = "dp" + strdp + "d1" customer_bid_file_tag = "dp" + strdp + "d1cc" delivery_product = self.initiate_dps([dp])[0] market = Market(delivery_product, bid_file_tag, customer_bid_file_tag, printing_mode=False) market.main() return 0