source: src/main/java/agents/rlboa/BenchmarkReloaded.java

Last change on this file was 153, checked in by Aron Hammond, 6 years ago

Added function to calculate opposition to MultiLateralAnalysis.java

Moved code to add RLBOA listeners to RLBOAUtils is misc package

!! close SessionInfo after tournament; this caused /tmp/ to fill up with GeniusData files

This commit finalized the RLBOA project and it is now ready for use

Our own package (uva.project.:

  • Moved to agents.rlboa
  • Added opponents and strategies that are mentioned in the report
  • Change class hierarchy, agents can now extend from RLBOAagentBilateral to inherit RL functionality.
  • States extend from AbstractState
File size: 1.5 KB
Line 
1package agents.rlboa;
2
3import genius.core.boaframework.BOAagentBilateral;
4import negotiator.boaframework.acceptanceconditions.other.AC_Next;
5import negotiator.boaframework.offeringstrategy.anac2012.TheNegotiatorReloaded_Offering;
6import negotiator.boaframework.omstrategy.NullStrategy;
7import negotiator.boaframework.opponentmodel.AgentXFrequencyModel;
8
9import java.util.HashMap;
10
11@SuppressWarnings("deprecation")
12public class BenchmarkReloaded extends BOAagentBilateral {
13
14 /**
15 * Benchmark agent to test the RL-agents against.
16 * Same opponentModel and Acceptancecondition but Offeringstrategy of the Negotiator Reloaded.
17 */
18 private static final long serialVersionUID = 1L;
19
20 @Override
21 public void agentSetup() {
22
23 // AverageTitForTat2 makes decisions based on its own preferences
24 opponentModel = new AgentXFrequencyModel();
25 opponentModel.init(negotiationSession, new HashMap<String, Double>());
26
27 omStrategy = new NullStrategy(negotiationSession, 0.35);
28 try {
29 offeringStrategy = new TheNegotiatorReloaded_Offering(
30 negotiationSession, opponentModel, omStrategy);
31 } catch (Exception e) {
32 e.printStackTrace();
33 }
34
35 acceptConditions = new AC_Next(negotiationSession, offeringStrategy, 1, 0);
36 setDecoupledComponents(acceptConditions, offeringStrategy, opponentModel, omStrategy);
37 }
38
39 @Override
40 public String getName() {
41 return "Project AI benchmark with offering strategy of Negotiator Reloaded";
42 }
43
44}
Note: See TracBrowser for help on using the repository browser.