From 81a5a3696ca6688aa2fe8b9aac3435b896e108df Mon Sep 17 00:00:00 2001 From: Yofuria <20377277@buaa.edu.cn> Date: Tue, 25 Jul 2023 23:52:52 +0800 Subject: [PATCH] update --- OrderSystem.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OrderSystem.py b/OrderSystem.py index dcfabb0..1b8652c 100644 --- a/OrderSystem.py +++ b/OrderSystem.py @@ -79,9 +79,9 @@ class OrderSystem(ap.Agent): self.ev_ave_delay_time = 0 self.ev_changed_product = np.array([float(x) for x in ev_ary_current_product[:, 1]]) # 23x1 ndarray 存储本次库存的改变 # print(ev_ary_current_product) - print(self.a_lst_order[0].ev_ary_dlv_product) - if len(self.a_lst_order) > 1: - print(self.a_lst_order[1].ev_ary_dlv_product) + # print(self.a_lst_order[0].ev_ary_dlv_product) + # if len(self.a_lst_order) > 1: + # print(self.a_lst_order[1].ev_ary_dlv_product) for order in self.a_lst_order: # print(order.xv_dlv_t[0], self.model.t) if order.xv_dlv_t[0] == self.model.t: # 第一次交付 @@ -93,8 +93,6 @@ class OrderSystem(ap.Agent): order.ev_ary_dlv_product[i] = 0 else: order.ev_is_delivered = False - if order.ev_is_delivered: - print('hhh') elif order.xv_dlv_t[0] < self.model.t and order.ev_is_delivered == False: # 第二次交付 order.ev_is_delivered = True for i in range(self.xv_product_num):