Commits

Anonymous committed 1dc7862

allow more random bidding

  • Participants
  • Parent commits db86be5

Comments (0)

Files changed (2)

File src/exp_settings.py

     firm_knowledge_fn='fns.knowledge_sum',
     firm_competitiveness_fn='fns.power_competitiveness',
     firm_returns_fn='fns.linear_market',
-    firm_bid_fn='fns.uniform_bid_in_mutual_profit_range',
+    firm_bid_fn='fns.uniform_bid_in_firm_profit_range',
     firm_initial_funds_pie=1,
     worker_canonical_valuator='fns.assign_worker_k_share_firm_income',
     worker_canonical_valuation_lagger='fns.lag_valuations',
 def uniform_bid_in_mutual_profit_range(firm, worker, valuation, world):
     """
     Given their valuation, how much does this firm bid for this worker? A
-    random amount up to the valuation, greater, if possible, than the current
-    wage, so that both parties may benefit
+    random amount up to their valuation, greater, if possible, than the
+    current wage, so that both parties may benefit
     """
     #never any sense bidding higher than the worker valuation
     high_bid = valuation
     low_bid = min(high_bid, worker.wage)
     return low_bid + random() * (high_bid - low_bid)
 
+def uniform_bid_in_firm_profit_range(firm, worker, valuation, world):
+    """
+    Given their valuation, how much does this firm bid for this worker? A
+    random amount up to their valuation.
+    """
+    return random() * valuation
+
 def bid_valuation(firm, worker, valuation, world):
     """
     given their valuation, how much does this firm bid for this worker?
     The valuation, straight-out.
     """
     return valuation
+    
 ################################################################
 # Firm death and birth functions