some Makefiles
[aco.git] / aco / parameter / eas / EASParameter.java
blob7ea6c6fb2aeae748878c4d581c1ed9ac56669988
1 package aco.parameter.eas;
3 import aco.strategy.*;
4 import aco.parameter.*;
6 public class EASParameter
7 extends ACOParameter {
9 protected double Alpha;
10 protected double E;
12 public EASParameter() {
13 super();
16 public EASParameter(
17 int NumOfCities,
18 ACOStrategy acos,
19 GraphStrategy gs,
20 TauZeroStrategy tzs,
21 DistanceStrategy ds,
22 PheromoneStrategy ps,
23 ChoiceInformationStrategy cis,
24 HeuristicInformationStrategy his) {
25 super(5.0, 0.5, 0.0001,
26 0, NumOfCities, NumOfCities, NumOfCities,
27 acos, gs, tzs, ds, ps, cis, his);
30 public EASParameter(
31 int NumOfAnts, int NumOfCities, int NearestNeighbourListDepth,
32 ACOStrategy acos,
33 GraphStrategy gs,
34 TauZeroStrategy tzs,
35 DistanceStrategy ds,
36 PheromoneStrategy ps,
37 ChoiceInformationStrategy cis,
38 HeuristicInformationStrategy his) {
39 super(5.0, 0.5, 0.0001,
40 0, NumOfAnts, NumOfCities, NearestNeighbourListDepth,
41 acos, gs, tzs, ds, ps, cis, his);
44 public EASParameter(
45 double Alpha, double Beta, double Roh, double TauZero,
46 int MaxNumOfTours, int NumOfAnts, int NumOfCities,
47 int NearestNeighbourListDepth,
48 ACOStrategy acos,
49 GraphStrategy gs,
50 TauZeroStrategy tzs,
51 DistanceStrategy ds,
52 PheromoneStrategy ps,
53 ChoiceInformationStrategy cis,
54 HeuristicInformationStrategy his) {
56 this.Alpha = Alpha;
57 this.Beta = Beta;
58 this.Roh = Roh;
59 this.TauZero = TauZero;
61 this.MaxNumOfTours = 0;
62 this.NumOfAnts = NumOfAnts;
63 this.NumOfCities = NumOfCities;
64 this.NearestNeighbourListDepth = NearestNeighbourListDepth;
66 this.acos = acos;
67 this.gs = gs;
68 this.tzs = tzs;
69 this.ds = ds;
70 this.ps = ps;
71 this.cis = cis;
72 this.his = his;
75 public double getAlpha() {
76 return this.Alpha;
79 public void setAlpha(double Alpha) {
80 this.Alpha = Alpha;
83 public double getE() {
84 return this.E;
87 public void setE(double E) {
88 this.E = E;
91 @Override
92 public String toString() {
93 StringBuilder result = new StringBuilder();
94 result.append("Alpha: " + Alpha + "\n");
95 result.append("Beta: " + Beta + "\n");
96 result.append("Roh: " + Roh + "\n");
97 result.append("E: " + E + "\n");
98 result.append("TauZero: " + TauZero + "\n");
99 result.append("NumOfAnts: " + NumOfAnts + "\n");
100 result.append("NumOfCities: " + NumOfCities + "\n");
101 result.append("MaxNumOfTours: " + MaxNumOfTours + "\n");
102 result.append("NearestNeighbourListDepth: " + NearestNeighbourListDepth + "\n");
104 return result.toString();