WayneLinn commited on
Commit
0b44e9e
1 Parent(s): 6d77c84

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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+1):
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