-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b57ab2
commit 1fa41ea
Showing
2 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
import Core.ThrashAgent; | ||
import Utils.SearchMethodEnum; | ||
import Utils.SimulatedAnnealingParams; | ||
import Utils.StrategyEnum; | ||
import Utils.ValFreqEnum; | ||
import negotiator.parties.NegotiationInfo; | ||
|
||
import java.util.Random; | ||
|
||
public class BestAgentWithoutMem extends ThrashAgent { | ||
|
||
@Override | ||
public void init(NegotiationInfo info) { | ||
super.init(info); | ||
} | ||
|
||
@Override | ||
public Random getRand() { | ||
return new Random(); | ||
} | ||
|
||
@Override | ||
public StrategyEnum getAgentStrategy() { | ||
return StrategyEnum.Threshold; | ||
} | ||
|
||
@Override | ||
public SearchMethodEnum getSearchingMethod() { | ||
return SearchMethodEnum.SimulatedAnnealing; | ||
} | ||
|
||
@Override | ||
public ValFreqEnum getFrequencyValueSelection() { | ||
return ValFreqEnum.ValueFreq; | ||
} | ||
|
||
@Override | ||
public SimulatedAnnealingParams getSimulatedAnnealingParams() { | ||
return new SimulatedAnnealingParams(1.0, 0.001, 0.999, 1); | ||
} | ||
|
||
@Override | ||
public double getBidUtilThreshold() { | ||
return 0.96; | ||
} | ||
|
||
@Override | ||
public double getTimeScalingFactor() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public double getCutoffValue() { | ||
return 1e-5; | ||
} | ||
|
||
@Override | ||
public double getVetoVal() { | ||
return 0.00; | ||
} | ||
|
||
@Override | ||
public boolean useHistory() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public double getSoftConcessionThreshold() { | ||
return 0.9; | ||
} | ||
|
||
@Override | ||
public double getConcessionThreshold() { | ||
return 0.98; | ||
} | ||
|
||
@Override | ||
public int getMemoryDepth() { | ||
return 1; | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return "Th SA Std"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters