Interface BidStrategy

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BidStrategy
Strategy for how an agent decides its bid value. Implementations can use LLM calls, heuristics, or fixed values.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    calculateBid(com.tnsai.agents.Agent agent, String taskDescription, double currentPrice, int round, List<Bid> previousBids)
    Determines the bid value for an agent.
  • Method Details

    • calculateBid

      double calculateBid(com.tnsai.agents.Agent agent, String taskDescription, double currentPrice, int round, List<Bid> previousBids)
      Determines the bid value for an agent.
      Parameters:
      agent - the bidding agent
      taskDescription - what is being auctioned
      currentPrice - current price (relevant for English/Dutch auctions)
      round - current auction round
      previousBids - bids from previous rounds
      Returns:
      bid value, or Double.NaN to abstain from bidding