Update utils.py
Browse files
utils.py
CHANGED
@@ -222,7 +222,7 @@ def calculate_expected_total_revenue_given_price(p2,model:ModelInfo):
|
|
222 |
|
223 |
def get_best_dynamic_threshold(model:ModelInfo):
|
224 |
best_rev = 0
|
225 |
-
for inv in range(model.STARTING_INVENTORY+
|
226 |
curr_rev = calculate_expected_total_revenue(c2_threshold=inv,model=model)
|
227 |
if curr_rev >= best_rev:
|
228 |
best_rev = curr_rev
|
|
|
222 |
|
223 |
def get_best_dynamic_threshold(model:ModelInfo):
|
224 |
best_rev = 0
|
225 |
+
for inv in range(model.STARTING_INVENTORY+2):
|
226 |
curr_rev = calculate_expected_total_revenue(c2_threshold=inv,model=model)
|
227 |
if curr_rev >= best_rev:
|
228 |
best_rev = curr_rev
|